Jump to content
41nd

Oembed-uri !

Recommended Posts

Dacă doriți să vizualizăm cu toții un anumit site extern (cum e YouTube sau Facebook ori Twitter) direct în topicurile de pe forum și aveți detaliile tehnice ale respectivului site legate de oembed vă invit să le postați la topicul ăsta. Atenție că preferăm oembed-urile fără cookies..

Deocamdată permitem doar următoarele oembed-uri: YouTube.

  • Upvote 2
Link to comment
La 26.06.2018 la 17:08, 41nd a spus:

Dacă doriți să vizualizăm cu toții un anumit site extern (cum e YouTube sau Facebook ori Twitter) direct în topicurile de pe forum și aveți detaliile tehnice ale respectivului site legate de oembed vă invit să le postați la topicul ăsta. Atenție că preferăm oembed-urile fără cookies..

Deocamdată permitem doar următoarele oembed-uri: YouTube.

Salut,
Noi mai folosim link-uri facebook(mai ales in zona SA:MP) si am dori sa le vizualizam direct in topic.
Sper ca iti ofer bine ceea ce e mai jos:

Post:

Unul dintre acestea:
    https://www.facebook.com/{page-name}/posts/{post-id}
	https://www.facebook.com/{username}/posts/{post-id}
	https://www.facebook.com/{username}/activity/{activity-id}
	https://www.facebook.com/photo.php?fbid={photo-id}
	https://www.facebook.com/photos/{photo-id}
	https://www.facebook.com/permalink.php?story_fbid={post-id}
	https://www.facebook.com/media/set?set={set-id}
	https://www.facebook.com/questions/{question-id}
	https://www.facebook.com/notes/{username}/{note-url}/{note-id}


Video:

Unul dintre acestea:
	https://www.facebook.com/{page-name}/videos/{video-id}/
	https://www.facebook.com/{username}/videos/{video-id}/
	https://www.facebook.com/video.php?id={video-id}
	https://www.facebook.com/video.php?v={video-id}

Exemplu: 
Un video despre cum sa distribui o poza pe facebook!?
URL: https://www.facebook.com/plugins/video/oembed.json/?url=https%3A%2F%2Fwww.facebook.com%2Ffacebook%2Fvideos%2F10153231379946729%2F

Ar trebui sa arate asa:

{
  "author_name": "Facebook",
  "author_url": "https://www.facebook.com/facebook/",
  "provider_url": "https://www.facebook.com",
  "provider_name": "Facebook",
  "success": true,
  "height": null,
  "html": "<div id=\"fb-root\"></div>\n<script>(function(d, s, id) {\n  var js, fjs = d.getElementsByTagName(s)[0];\n  if (d.getElementById(id)) return;\n  js = d.createElement(s); js.id = id;\n  js.src = \"https://connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.9\";\n  fjs.parentNode.insertBefore(js, fjs);\n}(document, 'script', 'facebook-jssdk'));</script><div class=\"fb-video\" data-href=\"https://www.facebook.com/facebook/videos/10153231379946729/\"><div class=\"fb-xfbml-parse-ignore\"><blockquote cite=\"https://www.facebook.com/facebook/videos/10153231379946729/\"><a href=\"https://www.facebook.com/facebook/videos/10153231379946729/\">How to Share With Just Friends</a><p>How to share with just friends.</p>Posted by <a href=\"https://www.facebook.com/facebook/\">Facebook</a> on Friday, December 5, 2014</blockquote></div></div>",
  "type": "video",
  "version": "1.0",
  "url": "https://www.facebook.com/facebook/videos/10153231379946729/",
  "width": "100%"
}
Edited by PePe
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...