fb.ui

Problem with FB.ui apprequest dialog

只谈情不闲聊 提交于 2019-12-12 03:01:38
问题 I am trying to send application invites from an Iframe application. I open the dialog like this. function sendRequestToOneRecipient(user_id) { FB.ui({method: 'apprequests', message: 'message', to: user_id, display: 'popup' }, requestCallback(user_id)); } When the dialog opens I get a ton of "Unsafe JavaScript attempt to access frame with URL from frame with URL" error messages. The send and cancel buttons just make the dialog go blank, but not close and it doesn't work. I don't know if it's

No callback with FB.ui

╄→гoц情女王★ 提交于 2019-12-11 02:11:28
问题 I can't get the Facebook UI callback to run. I've used the example from the FB dev site: https://developers.facebook.com/docs/reference/dialogs/feed/ FB.init({appId: "YOUR_APP_ID", status: true, cookie: true}); function postToFeed() { // calling the API ... var obj = { method: 'feed', redirect_uri: 'YOUR URL HERE', link: 'https://developers.facebook.com/docs/reference/dialogs/', picture: 'http://fbrell.com/f8.jpg', name: 'Facebook Dialogs', caption: 'Reference Documentation', description:

apprequest for a website

三世轮回 提交于 2019-12-11 01:04:47
问题 I m workin a projet and the marketing dep have the clever idea to a "invite friend" (apprequest) dialog on the website (with facebook connect) I would if it is possible , as I read that on the facebook online docs Requests are only available for Desktop Canvas apps and not website However, the dialog displays anyway , but no notification are sent. 回答1: You'd have to have a canvas implementation in order for the requests to be displayed and for users to be able to accept them. If you can't do

FB.UI params doesn't affect to dialog window

笑着哭i 提交于 2019-12-06 13:55:15
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(response && response.post_id){} else{} }); } but in dialog window infromation is filled without params,

Any workaround to avoid “unsupported browser …” when trying to use FB.ui on chrome on IOS

邮差的信 提交于 2019-12-04 19:29:50
问题 I am getting an "unsupported browser: chrome for ios doesn't support this feature. Please use safari and try again" when trying to open a share dialog by using the FB.ui API on an iphone. I guess this question is related Facebook OAuth "Unsupported" in Chrome on iOS, but I am interested in sharing and not authentication by itself (ie I don't care if a user will login and I will not know about it). 回答1: I know this is an old question but if anyone else faces this kind of problem, (I mean some

FB.ui feed not giving a callback

天大地大妈咪最大 提交于 2019-12-04 03:37:22
问题 I am unable to get any feedback from my Facebook FB.UI() method. I am convinced that I am using it correctly, as the actual post does post to my wall, but the callback data is either missing or empty. I am using: FB.ui({ method: 'feed', name: 'asd', link: 'asd', picture: '', description: 'asd' }, function(response) { console.log(response); if(response.post_id) { $.post("ajax/wall.php",{wall : 1}); } else { } } ); 回答1: I am not sure how this resolved itself, but it did :) I cleared my cache

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

假装没事ソ 提交于 2019-12-03 16:06:15
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', description: 'description' }, function(response){ // do something }); above approach is posting feed, I

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

天大地大妈咪最大 提交于 2019-12-03 08:22:40
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:'url'}, ref: 'xxx', redirect_uri: 'link to FB tab' }, function(response) { self.close(); } ); If I leave

FB.ui feed not giving a callback

走远了吗. 提交于 2019-12-01 19:47:12
I am unable to get any feedback from my Facebook FB.UI() method. I am convinced that I am using it correctly, as the actual post does post to my wall, but the callback data is either missing or empty. I am using: FB.ui({ method: 'feed', name: 'asd', link: 'asd', picture: '', description: 'asd' }, function(response) { console.log(response); if(response.post_id) { $.post("ajax/wall.php",{wall : 1}); } else { } } ); I am not sure how this resolved itself, but it did :) I cleared my cache and changed my code to below and it worked (however I don't believe the change of code actually played any

Facebook app request dialog box keep on loading/busy

岁酱吖の 提交于 2019-11-30 09:37:19
问题 We have a facebook app and our app uses facebook app request dialog very frequently. Most of the time it works pretty well without any error and hick ups, but sometime the FB.ui dialog just keeps on loading and doesn't show the request that it needs to send. When such condition occurs wherever the FB.ui dialog is used, it behaves the same and it just keeps on loading. Interesting thing is that after few hours it starts to work correctly itself (without making any changes) Each of our team