fb.ui

How to upload video on facebook using FB.ui Javascript sdk

☆樱花仙子☆ 提交于 2020-01-01 05:32:26
问题 I'm using FB.ui method to post image to facebook as described below: FB.ui({ display: 'popup', method: 'feed', name: 'image', link: 'link', picture: 'image path', caption: 'caption', description: 'description' }, function(response){ // do something }); I'm able to post image successfully, but couldn't post video. I have tried, but failed. FB.ui({ display: 'popup', method: 'feed', link: 'link', picture: 'thumbnail image path', source: 'https://example.com/media/video.mp4', caption: 'caption',

FB.ui feed dialog requires redirect_uri, dialog does not close

♀尐吖头ヾ 提交于 2020-01-01 03:37:18
问题 I am trying to open a feed dialog using the JS SDK's FB.ui method and have it close after the user shares. My problem is the feed dialog is requiring a redirect_uri even though the documentation says it doesn't have to be defined, and the popup window redirects there and will not close like the callback function says. Here's my code, attached to the submit click event: FB.ui ( { method: 'feed', name: 'xxx!', link: 'link to FB tab', picture: 'jpg', caption: 'xxx', actions: {name:'xxx',link:

Using Like Button and FB.ui (apprequests) On the Same Page Conflicts

旧时模样 提交于 2019-12-25 03:59:08
问题 I've ran into a problem with a canvas app. If the code for the Like button is enabled, the FB.ui call 'apprequests' gives an error. If I comment out the Like button, its back to normal. Calls with 'stream.publish' work normally tho. My Init code: FB.init({ appId : '12345', status : true, cookie : true, xfbml : true, channelUrl : '/channel.html', oauth : true }); The code for the Like button, generated with the FB tool: <div style="padding-left:177px"> <div id="fb-root"></div> <script>

Facebook Error 191 on canvas app using FB.ui() for the 'feed' dialog (worked before, stopped working last week)

我只是一个虾纸丫 提交于 2019-12-24 02:56:28
问题 I'm having a sudden problem with FB.ui() for showing a feed dialog for a user to post content from my canvas app onto their facebook feed. This was working up until about a week ago, and we haven't deployed any new code to this. FB.ui({ "method":"feed", "name":"Your Horoscope for Today", "link":"http://apps.facebook.com/dhbdayscopetest/", "app_id":"213524052014025", "picture":"http://iota.tarot.com/fb/bday/images/signs/capricorn.png", "caption":"Capricorn", "description":"The time for

FB.UI params doesn't affect to dialog window

浪子不回头ぞ 提交于 2019-12-22 17:40:24
问题 I want to add Facebook share button to my site. I created app on Facebook. Ran local server. Added to host-file 127.0.0.1 dev.mysite.com and added domain mysite.com and website http:/ /mysite.com (without space) to app settings in Facebook. Trying: function shareOnFacebook(){ FB.ui({ method: 'share', display: 'popup', title: 'myTitle', href: 'mysite.com', caption: 'mysite.com', picture: 'http://www.picturesource.com/path/picture.jpg', description: 'myDescription' }, function(response) { if

Dynamically generate description for explicitly shared open graph story through FB.ui Share Dialog

大兔子大兔子 提交于 2019-12-18 12:00:41
问题 Of all of the research I've done on this topic, 90% of it is outdated, which brings me to believe there have been recent changes to the Facebook JS SDK regarding explicitly sharing Open Graph stories. I have the following code: function postToFB(desc){ FB.ui({ method: 'share_open_graph', action_type: 'mynamespace:myaction', action_properties: JSON.stringify({ myobject: "myobjectid" }) }, function(response){}); } The problem with this is that it will attempt to share myobject with only the

Dynamically generate description for explicitly shared open graph story through FB.ui Share Dialog

此生再无相见时 提交于 2019-12-18 12:00:29
问题 Of all of the research I've done on this topic, 90% of it is outdated, which brings me to believe there have been recent changes to the Facebook JS SDK regarding explicitly sharing Open Graph stories. I have the following code: function postToFB(desc){ FB.ui({ method: 'share_open_graph', action_type: 'mynamespace:myaction', action_properties: JSON.stringify({ myobject: "myobjectid" }) }, function(response){}); } The problem with this is that it will attempt to share myobject with only the

Facebook stops custom parameters (image,title,description) through FB.ui?

断了今生、忘了曾经 提交于 2019-12-18 02:58:09
问题 Today I check my site and this code not working: <script> ... FB.ui({ display: 'dialog', method: 'share_open_graph', action_type: 'og.likes', hashtag: '#Testing', action_properties: JSON.stringify({ object: { 'og:image': img, 'og:image:secure_url': img, 'og:image:type': 'image/jpeg', 'og:image:width': w, 'og:image:height': h, 'og:image:alt': img, 'og:url': link, 'og:title': title, 'og:description': desc, 'fb:admins': fbadmin } }) }, function(response) { if (typeof response != 'undefined') { /

Using “share_open_graph” Facebook UI to create dynamic share dialog for quiz results

本小妞迷上赌 提交于 2019-12-17 22:04:12
问题 Summary: My problem is getting FB.ui , via the share_open_graph method, to create a customised share dialog that contains different title, description, and picture, based on the user's actions on the page. The question was my first and I had no reputation, so numerous links were removed, but (thanks to everyone who gave me upvotes) I have been able to rescue the screenshots that were originally missing. EDIT: I ended up having to just use a regular popup window with a share dialog in it, it's