I can use Facebook Graph API to share a link successfully. The link being shared has a og:video tag pointing to the swf. The swf is embedded correctly (i.e. i can click play button) on the user's profile feed. However, the swf is not embedded (i.e. no play button) on the user's news feed.
Is this expected? I would like the swf to be embedded correctly on both the news feed and the user's profile feed.
Thanks.
FYI - Adding the og:image tag on the link being shared fixed this.
Related
I'm trying to do a Feed Dialog in Facebook with a video already uploaded in Facebook.
First, I tried putting in the 'source' param the URL of the video, extracting it with the json return by Graph Api. However, Facebook doesn´t support their own media URLs in this way.
My intention is to show the same effect when you click in "Share" in any video in you facebook profile, but I don't know how i can refer the video.
I don't find anything in the Facebook's developers documentation.
Try linking to the video page itself, like how you link to YouTube if you want to share a video. Facebook renders the YouTube player in the wall when you do this, so in theory it should do the same when you share a Facebook Video URL.
I've just found the option: "Embed this Video" . In the code that Facebook gives in this option, I can find the URL for the video (www.facebook.com/v/video_id), and this works fine in the feed dialog.
The problem was the URL given in the JSON.
Thanks
The video links shared via my website on Facebook appear as only images in the shared link; Facebook doesn't seem to recognize the content as video.
I've debugged the URL via Facebook debugger, and every thing appears fine:
<http://developers.facebook.com/tools/debug/og/object?q=www.vlikeviral.com%2Fvideos%2Fplay%3Fid%3D10>
The thumbnail that appears under the link does not have a play button on it. As you can see in the debug details, the appropriate og tags are already present on the page.
For video playing Facebook is not considering og:video tag, instead of that it is looking for og:video:secure_url tag
refer-link: https://developers.facebook.com/blog/post/602/
You seem to be missing an og:video tag pointing to the video source.
See also Shared Facebook video is not displayed inline in wall posts for HTTPS users - you also need to include the HTTPS source if you want users browsing Facebook over HTTPS to see the inline video.
It is very easy. You can add play button on an image like Facebook play button by using adobe Photoshop. Watch this video you will understand how to add it on the image.
http://mefmor.blogspot.com/2014/08/how-to-add-facebook-play-button-in-your.html
I want to share to facebook a link and allow the user to choose from an array of thumbnails. This ability of choosing the thumbnail was capable with the share button but facebook has deprecated that functionality and the share button in favor of like which to my knowledge does not allow for selection of thumbnail it only uses one.
Can someone tell me how to pass a particular array of images to the share button object
OR
how to enable this functionality using the facebook graph API?
If you share the url link, that url link can have many og:image tags in it. See: https://developers.facebook.com/docs/reference/plugins/like/ for further information on how to setup the og meta tags in your url.
I need an application that plays a video as the user clicks on my fan page image ..Youtube is a sample app.
I need exactly the same thing for my app.
As I click share on my fan page, it shares the fan page , I am using the http://www.facebook.com/sharer.php with params title, summary,p[url],images[0],url..
As I click on the image on the user's profile page, It needs to start loading a video.
How can I do that?
I'd suggest to use facebook's opengraph protocol, you can use og:video tags with swf from opengraph dynamically on your page:
https://developers.facebook.com/docs/opengraph/
anytime the page with og:video tags is liked - the swf is automatically embedded on the user's wall, users have to click it to start playing exactly like youtube videos.
If I am not mistaken, Facebook does not allow you to auto play in-line videos.
I've found a lot of conflicting or outdated information and most of the links to fb's doc's are broken. Is it possible to embed a swf (eg, a game) in a wall post? Does the domain still need to be white listed? Is swf embedding part of the open graph meta tags? If this is still possible, what are the prerequisites?
You can use og:video with swf from opengraph dynamically on your page:
https://developers.facebook.com/docs/opengraph/
then anytime the page is liked - the swf is embedded on the user's wall. the app is not needed to be whitelisted for that.
hope this helps