facebook-graph-api

Getting Facebook Page Posts

末鹿安然 提交于 2020-02-20 05:43:18
问题 I've written a bit of JavaScript that will fetch all of the posts on a Facebook Page. The URL with which I do that is this: http://graph.facebook.com/cocacola/feed?limit=5&callback=facebookResponse and this worked fine and dandy, right up until last week sometime, when I started seeing oauth errors. I've searched for an hour or so on Stack, and seen plenty of other people are trying to do this, - but none have been asked after all of my requests to FB started returning these oauth errors. It

How to handle FirebaseAuthUserCollisionException

徘徊边缘 提交于 2020-02-13 03:03:40
问题 I started getting a FirebaseAuthUserCollisionException exception when I try to sign in with Facebook in my Android application. com.google.firebase.auth.FirebaseAuthUserCollisionException: An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address. I am using Firebase to handle the registration and Facebook to deliver a "one-click" login method, using a com.facebook.login.widget.LoginButton view as a

How to upload local image to facebook

。_饼干妹妹 提交于 2020-02-06 08:45:05
问题 I managed to upload an image to facebook using online URL but, when I try a local image using format file://path/to/image I get the error {"error":{"message":"(#100) url should represent a valid URL","type":"OAuthException","code":100} is it doable ? or am doing it wrong ? async function upload_fb_image(photo) { return new Promise(resolve => { FB.api(PAGE_ID + '/photos', 'post', { message: 'Message', url: LINK_TO_IMAGE, published: false, caption: 'Ad', access_token: EXD_ACCESS_TOKEN }).then

Using Python for Facebook to search

为君一笑 提交于 2020-02-05 08:06:51
问题 I'm trying to use Python to search the Facebook Graph for Pages. When I use the Graph API Explorer on the Facebook webpage and I enter: search?q=aquafresh&type=page I get the results I'm looking for. When I do the same in Python (after installing the PythonForFacebook module): post = graph.get_object("search?q=aquafresh&type=post") I get: facebook.GraphAPIError: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api I believe I'm

Using Python for Facebook to search

自闭症网瘾萝莉.ら 提交于 2020-02-05 08:05:26
问题 I'm trying to use Python to search the Facebook Graph for Pages. When I use the Graph API Explorer on the Facebook webpage and I enter: search?q=aquafresh&type=page I get the results I'm looking for. When I do the same in Python (after installing the PythonForFacebook module): post = graph.get_object("search?q=aquafresh&type=post") I get: facebook.GraphAPIError: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api I believe I'm

Using Python for Facebook to search

守給你的承諾、 提交于 2020-02-05 08:05:09
问题 I'm trying to use Python to search the Facebook Graph for Pages. When I use the Graph API Explorer on the Facebook webpage and I enter: search?q=aquafresh&type=page I get the results I'm looking for. When I do the same in Python (after installing the PythonForFacebook module): post = graph.get_object("search?q=aquafresh&type=post") I get: facebook.GraphAPIError: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api I believe I'm

Facebook Graph API

末鹿安然 提交于 2020-02-05 04:42:06
问题 Can I use the Facebook Graph API without the creation of my Facebook Application? As I understand it, for each operation I need to use the OAuth key. And I can only get user OAuth key if they authorize my Facebook application. Am I right? I need to get user feed, and post to it. 回答1: Facebook Graph Api needs your APP ID which you can only get from your Facebook application. So i think its not possible to post data on facebook without having Application ID. 回答2: You can use this tool to

Facebook graph api and newly defined objects and actions : message: “Unknown path components”

偶尔善良 提交于 2020-02-04 04:24:08
问题 I have defined an og name space, og_shamh, and an action "watch" using the FB app editor. I have called a javascript function (below) which attempts to create an action object. But I get : ["error response from fbCreateAction", Object error: Object message: "Unknown path components: /og_shamhh:watch" type: "OAuthException" __proto__: Object __proto__: Object The javascript function called with "og_shamhh" and "watch" is: function fbCreateAction(action,url){ FB.api('/me/'+og_namespace+':'

Facebook PHP SDK Graph API post to page not functioning properly

两盒软妹~` 提交于 2020-02-03 18:51:29
问题 I'm trying to add a feature to my app that will post a status to a admin user's page timeline with the same detail as if they posted on Facebook.com. The main feature I am focusing on is the link sharing and thumbnail images, like when you paste a link into your status and it auto-detects a thumbnail image, gives you a nice link, description, etc. I have tireless read through other forums and the Graph API documents, and I keep running into problems with the post showing as the admin user,

Fetch location or coordinates specfic posts using facebook search api

China☆狼群 提交于 2020-02-02 13:23:26
问题 Is there are way to fetch location/coordinate specific public posts using the facebook search api ( https://graph.facebook.com/search/?q=KEYWORD&type=post ... )? I want this to be a general search query, without any user authorization. I tried using https://graph.facebook.com/search?type=location&center=37.76,-122.427&distance=1000&access_token=... , but this requires access_token and returns objects(not posts) posted only by friends of the user whose access token is used for querying. I also