facebook-javascript-sdk

When is Facebook deprecating the JavaScript SDK?

我是研究僧i 提交于 2019-12-13 14:15:39
问题 I've asked this on the Facebook Developer Forums, but no-one is answering, so thought i'd ask it on Stack. I've got a website which integrates with Facebook Connect using OAuth for authentication. But i have some code which leverages the JavaScript SDK. I have heard that the JavaScript SDK is being deprecated and/or authentication via the JavaScript SDK is being deprecated. Can anyone: Confirm if the above statement is true Provide a link giving the date that it is to be deprecated Tell me im

Facebook - Error Message: redirect_uri is not owned by the application

两盒软妹~` 提交于 2019-12-13 13:51:19
问题 I am trying to use the FB.ui() to send apprequests to friends. My application is a tab iframe app (NOT A CANVAS APP) so in my developers section, I only have the "Basic info" and "Page Tab" section complete (not the app on facebook area) as I do not want users to be able to directly go to the application. the FB.UI() worked yesterday when I had the app of facebook area completed for my app, but when removing it I get the following error: API Error Code: 191 API Error Description: The

Facebook dialogs are not displaying to there full height?

淺唱寂寞╮ 提交于 2019-12-13 06:27:41
问题 I am using different facebook dialog boxes on my external website(a kind of facebook application) for tasks like posting to feed, Sending app requests etc. Earlier all dialogs were displaying properly but from last couple of days I have been experiencing display issues as dialog are not displaying to there full height. I have tested on Chrome, Firefox and Safari browsers, at all places same issue.I even asked some of my friends to check at there places, as a result they are also facing the

delete facebook requests via graph api

守給你的承諾、 提交于 2019-12-13 06:16:58
问题 I am getting latest apprequest like this: FB.api('/me/apprequests', function(response){ if (response.data[0]) { // code here }; How to delete apprequest using the same graph api method , I know this is possible with request containing access_token ... but in this case I am caching html and didn't know how Thanks 回答1: Please use the following code (PHP): file_get_contents('https://graph.facebook.com/'.$rid.'?access_token='.$token.'&method=DELETE') == "true"; // $rid: Request Id // $token:

facebook js api - HTML5 canvas upload as a photo

99封情书 提交于 2019-12-13 06:00:39
问题 Is there a way to convert an HTML5 canvas to a some sort of an image format so that it can be uploaded to facebook users application album though the js api, I'm currently successfully uploading an image link to an album with the following function: FB.api('/me/photos', 'post', { message:'the message', url:imgURL}); 回答1: Yes, there is way to convert HTML5 Canvas to an image. Following javascript function on the Canvas JS element will do this: toDataURL('image/jpeg', 1.0); You can have PNG

Facebook app access token posts are only visible to me and not my friends or followers?

微笑、不失礼 提交于 2019-12-13 05:39:09
问题 When I post to facebook using my App Access token, it is successfully posted and returns the post id. But I am the only person who can see the post on my wall, no body else can see the post. Please help me !? 回答1: In fact I just needed to go to Status & Review tab and allow make my app visible to general public. 来源: https://stackoverflow.com/questions/23088660/facebook-app-access-token-posts-are-only-visible-to-me-and-not-my-friends-or-fol

Sign In with FB issue: FB popup window with the Login dialog is blocked by a web browser

删除回忆录丶 提交于 2019-12-13 05:03:58
问题 FB documentation says: As noted in the reference docs for this function, it results in a popup window showing the Login dialog, and therefore should only be invoked as a result of someone clicking an HTML button (so that the popup isn't blocked by browsers). And I did as it says, I put the FB.login function into an onCLick function. But the the Login dialog is still blocked. Why? How to reorder the code? // Facebook // Here is a click event, so FB.login is inside a click function. $("#login

no age_range in facebook response (javascript sdk)

末鹿安然 提交于 2019-12-13 05:03:49
问题 I need to get age range for the user himself (not friend) As per https://developers.facebook.com/docs/graph-api/reference/v2.1/user user_range is part of the /me node. But, I decoded the response object and there is no age_range over there. I am using facebook javascript sdk. Is age_range available? how? is it still accessible through the ' signed _request '? 回答1: I was accessing the /me node via the graph API. I found out that the age_range is not returned with the root object but to get age

Structure of a facebook app with minimal api calls

眉间皱痕 提交于 2019-12-13 04:58:39
问题 I read all the articles on FB regarding PHP login, JS login, Canvas app login, but something remains unclear to me. How does one keep a user logged in after the initial login in JavaScript? You receive a signed_request (which you can use to authenticate the user ONCE (on initial load of a canvas app and on login, right?), let's say you use that information to verify the user server-side. Ok, so far.. But what about subsequent page loads? Basically my question is this.. Can I use the PHP FB

Fb graph api permissions aren't working

℡╲_俬逩灬. 提交于 2019-12-13 03:45:02
问题 I am using facebook login and its graph api to list all images of user to my website and the following code is working fine only for me that is the administrator and owner of the facebook app, it is not working for anyother person when he logged in the website using facebook login. Explanation of code: When user logged in, a function named testAPI is called which gets user basic information and then it makes another call to FB.API for permission access and then finally for getting pictures.