facebook-graph-api

How can I specify the Facebook permissions (aka scope) OmniAuth asks for DYNAMICALLY?

為{幸葍}努か 提交于 2020-01-12 04:53:06
问题 This question is similar to How can I specifiy what access I need from my user's Facebook accounts when using OmniAuth? but has a caveat. I'm using OmniAuth to authorize Facebook users on my website. For regular login/registration, asking the user for standard Facebook permissions are acceptable. But there is a feature on my site that requires extended permissions (access to their Facebook photos). I want to only ask for the extended permissions for users when/if they use our site's Facebook

Facebook Graph API: FB.login() called before calling FB.init()

烂漫一生 提交于 2020-01-12 04:01:30
问题 I'm trying to use the new Facebook Graph API on my website. This is what I have: Somewhere on the page: <fb:login-button autologoutlink="true" perms="email,user_birthday,status_update,publish_stream"></fb:login-button> Right after the tag: <div id="fb-root"> </div> <script type="text/javascript"> window.fbAsyncInit = function () { FB.init({ appId: '<%= ConfigurationManager.AppSettings["FBAppId"] %>', status: true, cookie: true, xfbml: true }); /* All the events registered */ FB.Event

Facebook fb:comments Graph API

假装没事ソ 提交于 2020-01-11 14:01:09
问题 i want to have facebook comments + my own website comments on my site. The thing is when showing posts i want to show a comment count next to every single one(so my comments + facebook comments). I know i can achieve this with https://graph.facebook.com/comments/?ids={PAGE_URL} but i have 100posts per page and i don't want to do this query a 100 times per page, also and more important is that i want to create a most commented widget where i currently have 1/4 of a million (250000) posts. So

Can the full name and profile picture of a user signed in via Facebook API be displayed publicly?

为君一笑 提交于 2020-01-11 13:41:05
问题 Rephrased, is it possible to use the Facebook Open Graph API to display a user's full name and profile picture to other site members who are not Facebook friends with the user? 回答1: Yes; users' first name, last name and profile picture are publicly available. You can retrieve them from the Graph API (along with other information they have made available) by calling: https://graph.facebook.com/[user_id_or_name] This will return a JSON string containing the relevant information. Enjoy! :) 来源:

Facebook wall post with text and image

孤者浪人 提交于 2020-01-11 12:40:15
问题 I've been stuck for days looking for a simple tutorial on making a facebook wall post with an icon or image and some text using the graph API. I've tried countless tutorials and they all seem very complicated and I can't get them to work. Even the samples that come with the SDK do not create sessions. I have been sucessful in setting up the SDK and getting my APP_ID all that is left is the Java code for a custom button to share my app on the users wall. 回答1: you can post your image with text

Facebook cURL posting as me?

笑着哭i 提交于 2020-01-11 11:27:08
问题 Create facebook app Using a cURL to post a message from an App but it's appearing to be posted from me? How can I can it to post from the app, here's my cURL $attachment = array( 'access_token' => $token, 'message' => '$message', 'name' => '$name', 'link' => '$link', 'description' => '$description', 'picture'=> '$picture', 'actions' => json_encode(array('name' => '$name2','link' => '$link2')) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,'https://graph.facebook.com/'.$pId.'/feed'); curl

Facebook Connect and Photo Albums

北战南征 提交于 2020-01-11 11:22:08
问题 I am currently developing a site for models/actors, and at this point I am just trying to ascertain what I can and can't do with Facebook Connect (I have virtually no experience in using Facebook Connect or FQL). Basically there is going to be a facility whereby users will be able to upload their pictures. I want to know is it possible to use Facebook Connect to get the user's photo albums, in order to save the user from re-uploading all the photo's that are already on FB? If so, do I/should

Android/Facebook: Post message on wall

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-11 09:52:22
问题 I would like to post a message on the my own wall via an Android application. I have the method loginToFacebook() to login. On click on a button, if the user is logged in I want a message to be posted. I am not really familiar with facebook API so I've looked the facebook developers documentation and other sites on internet to propose the code that follows. Yet, no message is posted on my wall. Obviously I miss something but I don't know what as I have no error on my LogCat. public class

Android/Facebook: Post message on wall

我的未来我决定 提交于 2020-01-11 09:52:06
问题 I would like to post a message on the my own wall via an Android application. I have the method loginToFacebook() to login. On click on a button, if the user is logged in I want a message to be posted. I am not really familiar with facebook API so I've looked the facebook developers documentation and other sites on internet to propose the code that follows. Yet, no message is posted on my wall. Obviously I miss something but I don't know what as I have no error on my LogCat. public class

Retrieve email using Graph API

爷,独闯天下 提交于 2020-01-11 06:58:06
问题 I am using app login access token retrieved through following API - https://graph.facebook.com/oauth/access_token?client_id=&client_secret=&grant_type=client_credentials Can I retrieve email address (primary email not the facebook email) of any user if it is public using Graph API? Thanks Lakhan 回答1: Two ways to get users primary email: For the authenticating user (ie the one who has granted your application access to their profile) and only when you explicitly request that permission. If the