facebook-javascript-sdk

Getting an Access Token Without User Login in Facebook Graph API?

自古美人都是妖i 提交于 2019-12-12 09:42:19
问题 I am working with facebook graph api rsvp_event. I am using javascript SDK. Everything works great when the user is logged in. But when the user is not logged in, it gives an error. I need information about who is attending a public event. I now understand that I would need an access token to retrieve this information. So, my question is how do I get the access token if no user is logged in? Is it impossible or is there a workaround? Could it be done server side using app_id and client_secret

set user (access token) within FB.init

此生再无相见时 提交于 2019-12-12 09:38:30
问题 i want to publish story to user timeline even when they were not login with facebook. Actually I stored user access token in the database, if the user login in with email, i'll retrieve the access token for her. It works well in php (e.g get friends list after setAccessToken(token_from_database), but when i post the story, it always post to current fb login account's timeline. I think the problem is caused by fb.init: window.fbAsyncInit = function() { FB.init({ appId : 'XXX', // App ID status

Auto fill my custom form using facebook data [closed]

六眼飞鱼酱① 提交于 2019-12-12 09:21:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have a form designed which takes input values. I want people to click the button "sign up as facebook" which takes in their facebook details and as a result fills my custom form with the appropriate values. i want it to be like this one. https://www.odesk.com/signup/create-account/id/Contractor_50dbed1edc1416

Facebook PHP SDK $uid = $facebook->getUser() always returns 0 [duplicate]

我是研究僧i 提交于 2019-12-12 09:06:15
问题 This question already has answers here : Why is Facebook PHP SDK getUser always returning 0? (26 answers) Closed 5 years ago . I am trying to integrate our DB with the facebook API , really new on this so I would appreciate some help. I am always getting 0 Using $uid = $facebook->getUser() I had a look to similar issues but didn't find a related solution. PHP if($_REQUEST['action']=="signup" && $_REQUEST['auth']=="facebook" && !empty ($_REQUEST['auth']) && !empty ($_REQUEST['action']) ) {

How to prevent the facebook-SDK (Javascript) is moving the logout button from right to left (“PluginResize”)

﹥>﹥吖頭↗ 提交于 2019-12-12 06:28:16
问题 Working with facebook Javascript-SDK (loaded from its servers asyncronously) gives a strange effect: after successfully login to FB via SDK the FB-Logout-Button is moving pixelwise from right to left and back. The login/logout-button is declared as: <fb:login-button size="large" autologoutlink="true" perms="email,user_birthday,status_update,publish_stream"></fb:login-button> stopping the script in Firebug results in a javascript-file called M6XESwM2V2D.js and there in the following code lines

How to send the app request using php in facebook

為{幸葍}努か 提交于 2019-12-12 05:27:43
问题 I have a app which i have registered in facebook. I want to add a option of sending app request to all my friends in facebook. I need to do it by authenticating and the asking the permission to continue to send all friends the app request. This i want to implement in php. Please help me friends... 回答1: I believe you have to do this using a 'Requests Dialog' which is available only through JavaScript. See below page for more information and examples of how to do this: https://developers

Facebook JavaScript SDK - getLoginStatus always returns unknown

余生长醉 提交于 2019-12-12 05:01:09
问题 I am creating the application that will aggregate data from different social network profiles. So I have created an interface where client can choose which social network profile will he allow my application to access to. Interface has either a button that user clicks to authorize app or a button that revokes granted privileges to my application if a user changed hers/his mind about giving the right to my application. My flow is following: On page load I ask Facebook whether the user is

Alternative to the default friend picker?

蓝咒 提交于 2019-12-12 04:25:01
问题 Is there an alternative version of the FB friend picker? I have noticed on a number of FB games that they use an interface that looks like the one I have attached to this post. Is this a standard FB picker or have FB developers just decided on a style and are all borrowing from each other? Thanks. 回答1: The dialog you post is a custom solution that a lot of apps include in their apps, i don't know what and where to find this but you can build your own by calling all the friends via Graph API,

Facebook Feeds Popup Dialog Does Not Close

和自甴很熟 提交于 2019-12-12 03:57:28
问题 Using the FB.ui to publish a feed with parameter display:popup. When a user selects the "Cancel" or after "Share", the web site specified in the 'redirect_uri' parameter is displayed within the popup. The Facebook documentation states that the popup dialog should be dismissed when the buttons are cancelled. Here is my code. What am I doing wrong? <script src='http://connect.facebook.net/en_US/all.js'></script> <script> window.fbAsyncInit = function () { FB.init({ appId: my APP ID, status:

facebook unsupported post request

只谈情不闲聊 提交于 2019-12-12 03:36:41
问题 I have logged in a user to my app from FB.login now I want to post to the user timeline on the behalf of user. I want to upload a video to the user timeline. I am doing something like: FB.api( `/${user_id}/videos`, "POST", { "file_url": video, "description": description, "thumb": video_thumbnail, "title": title, }, function (response) { console.log("fb response") console.log(response) if (response && !response.error) { /* handle the result */ console.log("video upload response") console.log