Get user list of owned apps facebook graph api - facebook-graph-api

How can I get the list of apps ids owned by me via the Facebook graph API?
I tried using the graph api explorer: graph api explorer with this url:
me?fields=accounts which gives me the user accounts.
My question is how to get the user owned apps ids

There is no way.
Earlier it was possible with this endpoint: me/applications/developer
The result:
User/applications endpoint is deprecated for versions v2.6 and higher

On version v2.11, I believe you are looking for: https://graph.facebook.com/v2.11/me/applications?access_token=USERACCESSTOKEN&type=developer

Related

How to get friend list using facebook graph api version 3.3?

I have access-token and using 3.3 version of facebook graph API. I am unable to get the friendlist of user. Can somebody help me to get friend list of person so that I can send them an invitation to install my app.
If it´s a game, you can use the Game Request dialog: https://developers.facebook.com/docs/games/services/gamerequests/
If not, use one of the Sharing Options described in the docs: https://developers.facebook.com/docs/sharing/
There is no way to get the friends with the API anymore, you can only access friends who authorized your App too - with the user_friends permission.

Search users using Facebook Graph API

How do I search users using the Facebook Graph API?
I've tried:
GET https://graph.facebook.com/search?q={name}&type=user&access_token={token}&appsecret_proof={proof}
GET https://graph.facebook.com/v2.12/search?q={name}&type=user&access_token={token}&appsecret_proof={proof}
But both return empty data:
{"data":[]}
I saw a question which mentioned that some search features had been deprecated in API v2.0. Is it still possible to do a user search? I can't find any Facebook API reference for doing a user search.
Turns out the problem was because I was using a test user account. I tested with a real account and it's working.
GET graph.facebook.com/v2.12/search?q={name}&type=user
Requires access_token.
Requires appsecret_proof if "Require App Secret" is enabled.
Returns empty data with test user account.

Facebook Graph Api user_groups related error

I wanted to use Graph Api to fetch the groups where user is member. But since 2.4, FB has deprecated the user_groups permission. In Graph Api Explorer, when I tried it with v2.3, it returns the results as expected. After seeing this, I implemented the same in my app with the version parameter of GraphRequest. Doing this, did not show me the results, instead they showed the error of permission.
What should I do then? Is there any way to use v2.3 for Graph Api? As per the sdk, my current Graph Api is 2.9
Use user_managed_groups instead, there is no other way. You can only access groups you manage and you cannot go back to an older API version. Even with an older App it would be pointless, see deprecation info in the changelog: https://developers.facebook.com/docs/apps/changelog

Graph API me/friends/ always return empty

i used to create Facebook APP, checked to get friends list using Access token from Graph API Explorer, it always returning empty data
https://developers.facebook.com/docs/apps/changelog
https://developers.facebook.com/docs/apps/upgrading/
Check those Links, Facebook made a big step forward towards privacy. /me/friends only returns friends who authorized the App too, that´s why the result is empty.
With the introduction of the Facebook Graph API 2.0, access a user’s friends list was removed and limited to just friends who use the same application. However, Facebook added two new APIs to allow retrieval of Friend names (and indirectly a friend count). The two new APIs are taggable_friends and invitable_friends.
In v2.0 of the Graph API, calling /me/friends returns the person's friends who also use the app.
Check this link: Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app
When I login with ID my friend and retry send request "me/friends" again. It return ID my Facebook to me. If you need test, you can use this way.
I have currently find this one useful, just posting a snippet:
FB.ui({method: 'apprequests',
message: 'Please sign up .',
filters: ['app_non_users']
}, function(response){
console.log("Response from app requests:"+response);
});
Reference url https://developers.facebook.com/docs/games/requests/v2.1#params
Facebook was updated with version 2.0,
if you want to use Graph API me/friends/, you need to submit your app for review.
Steps to do it:
goto your Apps --> status and Review ---> start a Submission.
then you need to provide your information for review with screen shot.
Submit Items for Approval
Some Facebook integrations require approval before public usage.
Before submitting your app for review, please consult our Platform Policy and Review Guidelines.

How do I get the list of facebook apps a user is an admin of using the Facebook Graph API?

Am using the Facebook Ads API to run ads. For running Mobile App Ads, I need to retrieve the apps which the logged in User is an admin of. I couldn't figure out from the documentation as to how to get this list of apps. Some stack overflow threads (How to get if a user is admin of a page (isAdmin) using the Facebook Graph API?) suggest requesting /me/accounts , but the just returns a list of facebook pages the user is an admin of. Could someone suggest some documentation in this direction?
The Graph API call /me/applications/developer returns all applications of which the user is an admin.
Read more here: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/applications/developer
Doesn’t seem to be possible with the current API v2.0 – but it is with FQL, using the app_role table:
SELECT application_id FROM app_role
WHERE developer_id = me() AND role = 'administrators'
Test it in Graph API Explorer
(And yes, FQL is deprecated, but it will still be around for at least two years. And before they completely shut it off, they will implement query-like features in a future API version according to what I’ve heard from FB employees.)