facebook-javascript-sdk

The method FB.api will stop working when called from http pages in X days. Please update your site to use https for Facebook Login

大城市里の小女人 提交于 2019-12-10 03:46:52
问题 I'm developing an app in localhost and suddenly getting this error: The method FB.api will stop working when called from http pages in X days. Please update your site to use https for Facebook Login. Will I still be able to develop in localhost when the time runs out? 回答1: As per Facebook announcement: You will still be able to use HTTP with “localhost” addresses, but only while your app is still in development mode. Link: https://developers.facebook.com/blog/post/2018/06/08/enforce-https

Facebook FB.login works in Safari, but not mobile Safari

限于喜欢 提交于 2019-12-10 01:54:32
问题 The following FB.Login function works fine in desktop Chrome, FF, and Safari. But in mobile Safari (tested on an iPhone 4S), it hangs and does not return to the FB.login callback. I can also see this in the console when I use Safari and set the User Agent to "Safari iOS 4.3.3 - iPhone". Is it because mobile Safari blocks popups? (FB.login triggers a popup dialog). How do I fix this? Thanks. function Login(returnLink) { FB.login(function(response) { if(response.status === 'connected') {

Why FB.ui does not work even after loading javascript sdk?

风流意气都作罢 提交于 2019-12-09 23:31:39
问题 I am just wasting time from last one week trying to figure out what goes wrong in this particular SIMPLE code sample. Firefox's Error Console says 'FB.ui not defined'. I tried to fix this by placing the code that loads javascript sdk in every possible way. But theres no effect. And all the firefox says is 'FB.ui not defined'. Someone help me out please. Thanks. (Note: I ve replaced the XXX... with ma APPID) <html> <head> <title>My Great Website</title> </head> <body> <div id="fb-root"></div>

Extending valid/expired 60 days access token without user interaction

北城余情 提交于 2019-12-09 22:14:14
问题 I use access token in my joomla module to get page/group wall feed posts to show in user website page.user generated access token by my facebook application from my site before using the module in their joomla site. What i want - "I want to extend the expire date of an existing non-expired/expired 60 days token without user interaction". What i got from web that calling this url token can be extended - https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECRET

Why does FQL return different user IDs to Graph API

三世轮回 提交于 2019-12-09 21:51:03
问题 I want to see which users can see a particular album. I use the following query to get my albums and their privacy settings: SELECT id,allow,deny,description,friends,value FROM privacy WHERE id IN (SELECT object_id FROM album WHERE owner=me()) and it returns something like this for each album: { "id": 212102865605678, "allow": "211824028961234,212367312342178", "deny": null, "description": "John Doe, Work People", "friends": "SOME_FRIENDS", "value": "CUSTOM" } The second ID in the allow

FB API making insecure xd_arbiter.php requests in a secure page

断了今生、忘了曾经 提交于 2019-12-09 16:59:33
问题 I'm having trouble with a secure Facebook app page which the browser reports as containing insecure content. The insecure content seems to be one request to: http://static.ak.facebook.com/connect/xd_arbiter.php All subsequent calls from the FB API are going over https, though. I can't figure out what the problem is, since I'm loading all of my content securely, including the FB script: https://connect.facebook.net/en_US/all.js Any ideas? Update: Seems like it's Facebook's own mistake, and a

Auto login facebook - FB.Event.subscribe auth.login doesn't work

荒凉一梦 提交于 2019-12-09 14:14:28
问题 for some reason today my code for auto login for existed members broke. normally this code works perfect, after a check with firebug I saw that there is a problem finding 'auth.login' for some reason, and therefor the call for window.location.reload(); isn't working. (if I refresh manually then the member shows as connect properly,the problem is just the auto login before the session is open that need a page refresh) I also tried to see if the problem is only 'auto.login' and replaced it with

More action links in single wallpost

南笙酒味 提交于 2019-12-09 13:42:19
问题 Is it possible to create wallpost with more than one action link? My code works only with one action link. Wallpost with two action links is not sent to Facebook (no error message). var publish = { method : 'feed', name : name, link : link, picture : picture, caption : caption, description : description, message : message, actions : [{ name : 'Link 1', link : 'http://www.example.com' },{ name : 'Link 2', link : 'http://www.example2.com' }] }; FB.api('/me/feed', 'POST', publish, function

How to create requests dialog with multiple recipients selected by app

≡放荡痞女 提交于 2019-12-09 06:47:47
问题 The Sims Social has their own friend selector. And once you select your friends and hit submit, it throws up this official Facebook request dialog that has multiple friends on it and a checkbox that says "Don't ask before sending The Sims Social requests to..." How can I duplicate this? I've tried sending an array to the apprequests ui dialog, but that gives "Error Message: Too many recipients." I'm not using the Facebook friend selector. I'm using my own and sending it to the apprequests

How to close a facebook SDK dialog opened with FB.ui()?

♀尐吖头ヾ 提交于 2019-12-09 05:44:46
问题 I'm successfully displaying an invite friend dialog (code shown below). When user clicks skip the iframe/dialog shows a new page. However from this point I can't find a way how to close the iframe/dialog. FB.ui doesn't return any object, there doesn't seem to be a Javascript SDK method and traversing and manipulating with the DOM will be brittle to any FB code changes. Any ideas? function popupInviteForm(actionUrl) { var fbmlString = '<fb:fbml>' + ' <fb:request-form type="POST" content="Play