facebook-graph-api-v2.0

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

喜你入骨 提交于 2019-12-01 14:39:40
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 above. This works fine when the url ends in .jpg but fails on the above. As a note, I am converting

Get Facebook User ID with Facebook App Scope ID

不羁的心 提交于 2019-12-01 11:56:07
Is it possible to get origin facebook id from facebook app scope id? I have 2 apps that shares the same database, so that user only need to sign up in one app in order to login both. This was working until facebook update their api from 1.0 to 2.0. Now, each user will have different fb scope id in each of them. I can't use fb id reference to the same user obj anymore. You will not be able to get the global user id. But there are other methods to be able to know. And it is all described at https://developers.facebook.com/docs/apps/for-business It is possible to get the Facebook global user id.

fetching list of friends using facebook 2.0

℡╲_俬逩灬. 提交于 2019-12-01 08:32:04
问题 is there any way to fetch list of friends using facebook 2.0 API? I was reading this upgrade from the API and it seems it is quite difficult to fetch the friends now, but I have seen 2 permissions read_friendlist user_friends Is their any way to fetch list of friends? and what about the widgets that get friends from facebook, will they go down? 回答1: In v2.0 of the Graph API /me/friends returns the user's friends who also use the app. You need to be granted the user_friends permission in order

How to call versioned graph API services in Facebook .NET SDK?

早过忘川 提交于 2019-12-01 04:26:07
问题 It seems that Facebook now wants us to call versioned endpoints of the Graph API. E.g., https://graph.facebook.com/v2.0/me... Does the Facebook SDK for .NET make versioned calls? Do I/can I do something to specify the version? 回答1: Sanjeev got it, there is a parameter you can add to specify version: FacebookClient fbClient = new FacebookClient(); fbClient.Version = "v2.2"; fbClient.Post("me/feed", new { message = string.Format("Hello version 2.2! - Try #2"), access_token =

OAuthException: (#12) events management API is deprecated for versions v2.0 and higher

烂漫一生 提交于 2019-12-01 02:20:46
i am stuck on this error when i post event to my wall through offline posting OAuthException: (#12) events management API is deprecated for versions v2.0 and higher Tobi You can't create events anymore with the Graph API v2.0: https://developers.facebook.com/docs/graph-api/reference/v2.0/event/#publish https://developers.facebook.com/docs/apps/changelog#v2_0_graph_api Quote: the create_event permission is no longer available. 来源: https://stackoverflow.com/questions/23798306/oauthexception-12-events-management-api-is-deprecated-for-versions-v2-0-and

OAuthException: (#12) events management API is deprecated for versions v2.0 and higher

本秂侑毒 提交于 2019-11-30 21:17:20
问题 i am stuck on this error when i post event to my wall through offline posting OAuthException: (#12) events management API is deprecated for versions v2.0 and higher 回答1: You can't create events anymore with the Graph API v2.0: https://developers.facebook.com/docs/graph-api/reference/v2.0/event/#publish https://developers.facebook.com/docs/apps/changelog#v2_0_graph_api Quote: the create_event permission is no longer available. 来源: https://stackoverflow.com/questions/23798306/oauthexception-12

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

余生颓废 提交于 2019-11-30 01:23:12
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! 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 an app may have been using username, such as in the old share dialogs, can no longer do that when used with

Facebook Graph API rejects newly created access token

∥☆過路亽.° 提交于 2019-11-29 22:55:45
Earlier today, the Facebook login flow of our web application stopped working for some users. When we try to fetch the current profile, an error is returned. It claims that the access token we just generated by redirecting the user to the OAuth login flow has been rejected. The reason given is: The access token is invalid since the user hasn't engaged the app in longer than 90 days To me, this makes no sense since we do not store the access token anywhere except for the current session and recreate it every time the user logs in with Facebook. The stacktrace from Spring Social for the GET /me

how to get friends birthday in v2.0 facebook API - any alternate way

感情迁移 提交于 2019-11-29 17:19:21
I need help. We all know that in v2.0 all permissions of friends_* are removed. But still is there any way to get birth date of friends who also use your app? I am using below permissions: &scope=public_profile,email,user_friends Any help would be appreciated. With Graph API v2.0, all friends_* permissions have been removed (as you wrote): https://developers.facebook.com/docs/apps/changelog#v2_0_permissions So, there's no way to get the birthday of the User's friends via the Graph API anymore. i dont know if this could help you but i think it could be worth a try. there is the possibility to

how to get friends birthday in v2.0 facebook API - any alternate way

落爺英雄遲暮 提交于 2019-11-28 10:40:13
问题 I need help. We all know that in v2.0 all permissions of friends_* are removed. But still is there any way to get birth date of friends who also use your app? I am using below permissions: &scope=public_profile,email,user_friends Any help would be appreciated. 回答1: With Graph API v2.0, all friends_* permissions have been removed (as you wrote): https://developers.facebook.com/docs/apps/changelog#v2_0_permissions So, there's no way to get the birthday of the User's friends via the Graph API