facebook-graph-api-v2.0

New iOS App struggling with Facebook Graph api v2.0

早过忘川 提交于 2019-12-20 04:16:20
问题 I'm new to app development, and I've been building a social iOS app that requires sending Facebook invites to join the app. Yesterday's release of Facebook Graph API 2.0 seems to have much stricter requirements on how to invite those not already part of the game. I'm trying to activate me/invitable_friends but I keep getting the same message: { "error": { "message": "(#15) This method is only accessible to Games.", "type": "OAuthException", "code": 15 } Their documentation mentions needing to

How to get user's username in v2.0 or later of Facebook's Graph API

南笙酒味 提交于 2019-12-18 11:01:41
问题 I used to get the user's username in the API 1.0 fairly easily, using /me and getting the username property of the response object. Now I'm getting this error with API 2.0: "(#12) username is deprecated for versions v2.0 and higher" The only way I found to get this until now was to use FQL, but now it seems deprecated. Anyone knows a way around this? Thanks! 回答1: I don't mean to be unhelpful, but it appears access to username has been removed from the API, as far as I can tell. Places where

How to get user's username in v2.0 or later of Facebook's Graph API

让人想犯罪 __ 提交于 2019-12-18 11:01:29
问题 I used to get the user's username in the API 1.0 fairly easily, using /me and getting the username property of the response object. Now I'm getting this error with API 2.0: "(#12) username is deprecated for versions v2.0 and higher" The only way I found to get this until now was to use FQL, but now it seems deprecated. Anyone knows a way around this? Thanks! 回答1: I don't mean to be unhelpful, but it appears access to username has been removed from the API, as far as I can tell. Places where

Get facebook friends with Graph API v.2.0 [duplicate]

南笙酒味 提交于 2019-12-17 03:47:45
问题 This question already has answers here : Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application (7 answers) Closed 5 years ago . A while ago, I used to take the friends of mine using Graph API in this way (using Graph API Explorer): /me/friends Everything was perfect but now, with 2.0 version, I saw that this way does not function for friends who didn't use (via Facebook Login) the app making the request and, if I switch Graph API Explorer to 1.0

I cant save some facebook images to my server as it does not understand the file

∥☆過路亽.° 提交于 2019-12-13 05:11:13
问题 I am using the facebook graph api and it was working well until I realised that some of the jpg files have a query string at the end that is making them unusable. e.g. https://scontent.xx.fbcdn.net/hphotos-xaf1/v/t1.0-9/487872_451835128174833_1613257199_n.jpg?oh=621bed79f5436e81c3e219c86db8f0d9&oe=560F3D0D I have tried stripping off everything after .jpg in the hope that it would still load the image but unfortunately it doesnt. In the following code take the $facebook_image_url to be the one

Accessing user feed using Facebook Graph API v2.0

拜拜、爱过 提交于 2019-12-12 09:09:30
问题 I recently created an app in Facebook. By default the API version used was v2.0. Thus for every new user it generated a 'App-scoped User ID'. I am retrieving the ids of users through the graph api search feature. Now I want to use the /{user-id}/feed to fetch feed of a specific user. Is there a way I can access a specific user's feed using an access token generated for my Facebook account through a Facebook app? 回答1: Page and User is different thing. For page, you can access PAGE_ID/feed

Determining if two app using users have any mutual friends in Graph API 2.0/2.1?

北城余情 提交于 2019-12-11 11:28:25
问题 I want to determine if two users (both using my app) have any mutual friends in common. The names/data of the users are irrelevant, the number of the mutual friends is irrelevant. I just need if two people have any friends on Facebook in common or not. The mutual friends may not be using the app, but the two ends ARE using my app. These were pretty easy in Graph API 1.0, but I'm wondering if what I'm trying to achieve is possible by any means in Graph API 2.0 or 2.1? 回答1: Use the mutual

How to get Facebook Share Count and Comment Count on Version 2.7

半城伤御伤魂 提交于 2019-12-11 06:19:59
问题 What is my Issued? Im not getting result/output, using my php code? (first issued) How to input my Access Token on my php code? (Second Issued) When i enter this URL from browser: https://graph.facebook.com/v2.1/?id=http://google.com Im getting result JSON: { "share": { "comment_count": 0, "share_count": 44100483 }, "og_object": { "id": "1485280808235339", "description": "Honoring our veterans #GoogleDoodle", "title": "Google", "type": "website", "updated_time": "2017-11-11T21:40:44+0000" },

Facebook graph api explorer doesn't show 'Friends Data Permission' tab

☆樱花仙子☆ 提交于 2019-12-11 03:44:41
问题 Trying to use Facebook Graph API Explorer. when selecting 'Get Access Token' its only showing two tabs: 'User Data Permissions' and 'Extended Permissions'. its missing 'Friends Data Permissions'. Does anyone have any idea why? couldn't attach a photo as i don't have enough reputation. 回答1: All the friends_* permissions were removed in v2.0 来源: https://stackoverflow.com/questions/23612142/facebook-graph-api-explorer-doesnt-show-friends-data-permission-tab

Phonegap/Cordova Upload photo to graph.facebook - requires upload file

大憨熊 提交于 2019-12-08 12:50:42
问题 I am using the v2.0 version of the facebook graph api and I am trying to upload a picture to v2.0/me/photos, but unfortunately I get this error (#324) Requires upload file , which is strange, because I have publish_actions permission and the documentation says this is all I need. I am using phonegap, therefore the normal JS SDK doesn't work for me and the cordova-facebook-plugin makes cordova to fail it's build (followed instructions on at least 5 forums/blogs, nothing worked), that's why I