facebook-javascript-sdk

Facebook Login not open in Safari/ iPhone

∥☆過路亽.° 提交于 2019-12-19 03:21:45
问题 I am creating one application which show Facebook friend. First, user need to click on login button then one simple popup screen will appear after filling login id and password it will show friend list. Everything ok and run on Firefox, Chrome,IE but it will not open popup in Safari and iPhone. someone suggest me add domain name and channel name in channelUrl . I create one channel.html and add reference but it didn't help me. I search lot's but didn't find helpful. Here is my code. Custom.js

Uncaught Error: Minified exception occurred [Facebook Login]

久未见 提交于 2019-12-18 18:27:11
问题 I am trying to integrate my website with facebook login. I have followed all the documentation provided by Facebook (Quick Start). Here is my code function init() { function checkLoginState() { FB.getLoginStatus(function(response) { if(response.status=="connected"){ var fbUser = response.authResponse.userID; var fbAccess = response.authResponse.accessToken; var data = new FormData(); data.append('fbUser',fbUser); data.append('fbAccess',fbAccess); callAjax('dologinfacebook',data); } }); }

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 Graph API Post with_tags option

Deadly 提交于 2019-12-18 05:19:06
问题 I'm experiencing an issue with http://developers.facebook.com/docs/reference/api/post/. Namely, option called "with_tags". options = { "message": "Test123", "with_tags": { "data":[ {"id": 100001686722916, "name": "Aret Aret"} ] } }; FB.api('/me/feed', 'post', options, function(response) { if (!response || response.error) { alert('Error occured'); console.log(response); } else { console.log(response); } }); As a result, I just get a message "Test123" but no "with" tags in my post. The user I

Facebook get access Token

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 03:49:09
问题 How to get a "access token" using Facebook Graph API. I have app ID, the username and password of the user. Just i need to get the access token so that i may be able to access news feed,.... and others. 回答1: Okay so you need to get the access_token of a user in JavaScript. Here you go: Start reading the JavaScript SDK documentation Something like the below will get you started: <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ appId : 'YOUR_APP_ID', // App ID

How to securely authorize a user via Facebook's Javascript SDK

醉酒当歌 提交于 2019-12-17 23:44:11
问题 I want to let users log in on my website using their Facebook ID without reloading the page. This is why I use Facebook Javascript SDK. This scheme describes the authorization flow with this SDK: At the end of the process I know that the user is logged in and I know their Facebook ID. I can then register them in my database via this ID, and let them use it to log in afterwards. However, this seems terribly insecure. In order to let my server-side script know the user's ID, I have to send it

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

How to access fb access token form server running program ( python )

早过忘川 提交于 2019-12-17 21:13:09
问题 I have developed a fb app and the front end side is working great with my own db. Now I want to make a python program that runs through the command line which posts to my fb account. I know with this I need to access the access token as I come across this while access my app outside fb which does not function properly unless run inside the fb iframe. So is there a python sdk etc so that I can access the access token and or storing the access token in the db so python can pull it out then use

“Failed to load resource” using Facebook's example code

坚强是说给别人听的谎言 提交于 2019-12-17 18:35:17
问题 I'm trying to run the first example from the documentation of the Facebook JS SDK. I created a new app, created a blank document called "facebookTest.html", pasted in the code from the example, and plugged in the new app's App ID. Code as follows: <html> <head> <title>Login with facebook</title> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { // init the FB JS SDK FB.init({ appId : 'my app ID', // App ID from the App Dashboard status : true, // check the login status upon