How do I get parse information about the App that I own? that is to say, that I know the App Id, secret Id and all the relevant information. Does the API provide a way to, say, get the number of users using my app? etc.
It is possible, you need to use FQL and query this table.
Related
I need to be able to consolidate all the likes from users that use my Facebook app into an Excel or .csv file. I can have the user authenticate within my Facebook app, but is there a way to see the likes for all users of an app using Open Graph or some other Facebook tool? I'm certain that someone else must have had this problem, and I'm hoping that one of you can help me out!
I've been trying to run FQL queries to bring up likes, but don't have any experience with PHP so it has been miserable so far. Any ideas?
There's no way to retrieve a list of users of your app - you'll need to manually build that as users authorise the app see this question for more information
Assuming you have permission to access a user's likes connection - access /USER_ID/likes and parse the response, saving it to a file in accordance with whatever language you're using's syntax (google is your friend here)
Note that your use of the data is subject to Facebook's policies and user's consent in accordance with your privacy policy and sharing it with third parties may be illegal (i am not a lawyer, this is not official advice, etc etc)
Here is the problem with that the application type does not have a like connection. Application Object GraphAPI This is inconvenient when you are looking to gather data on the users that like it.
OR were you talking about the likes endpoint of the user object? That you can gather but I dont think it is what you are looking for. It is shown here Graph Explorer Example - user's likes
I want to get facebook friends Id of a specific facebook user. how can i do this?
in detail : I have a server, and form a mobile I'll send a facebook id of a user to that server. accoding to that facebook id I want to get facebook ids of friends of that user. (this should do from server) please any one guide me to do that.
answer = for this we should have access token.
Sounds like facebook wouldn't like that :)
You could scan profile.php?id=&sk=friends and parse the output for the ids.
But I'm sure the habe some fancy Ajax running giving you an easier method.
Have you checked their API? https://developers.facebook.com/docs/reference/api/FriendList/
But you need permissions for that.
I hope someone wil be able to help to resolve my problem.
We can't say Facebook's forums are very useful for developers...
This is my problem.
On two different applications, I execute requests with Graph API.
For one of both, I make a friends request to invite user's friends to use application.
For the second application, I use Facebook Places to retrieve all informations about a location.
These two codes are simples functionnalities tests.
Before excute a request with Graph API, I ask to user to give me necessaries authorizations.
But results are, often, an empty JSON "data" array...
Before posting here, I search some solutions on internet.
Some people say application hasn't necessaries rights. Others user must like application page to retrieve informations correctly...
I tried these solutions... whithout concluant result.
For example, talking about my Facebook Place based application.
It asks user_checkins and friends_checkins rights.
Goal is to retrieve, for a given location, datas from users who're tagged there.
But I have an empty data array as return.
I tried my code in different ways, with PHP SDK, Javscript SDK and FQL. Same result.
Thanks :)
Sorry for my english. I'm a french developper ;)
For this - "Goal is to retrieve, for a given location, datas from users who're tagged there." Refer to https://developers.facebook.com/docs/reference/api/page/ and you will see that you can only get the checkin information for the current user or friend of the current user. In the case of a friend you will only get that information if the friend has allowed other apps to see this. So to test that you get data you should check in to a place (page), find the place's id, then make a query to https://graph.facebook.com/PAGE_ID/checkins with an access token that has user_checkins permission.
Also, here is a tool that you may find useful when debugging your API calls and permissions - https://developers.facebook.com/tools/explorer
So I simply want to add my current facebook status to my personal website. I have been looking at tutorials and other posts about fb and fb connect, but I am still confused.
Is there anyway to do this with simple REST calls? Like twitter or flickr?
From what I understand I dont need FB connect because I am just getting my own status and do not need to get any info from other visitors.
Any know how to do this?
Facebook does have an API, but unfortunately, you cannot use it without acquiring a secret key. Because Facebook gives users control over their data privacy settings, there is no "public access" to data retrieval methods. You must have a key in order to start fetching things.
All facebook applications are given a secret key when they are created. Users can prevent applications from retrieving their data if they want, hence the need for an associated key.
Facebook Connect applications function in the same way... they are assigned a key that is used remotely from a third-party site (ie. yours).
Unfortunately, without one of those keys you won't be able to access any data, even your own. You could probably come up with a work-around by making your own application and using that key to fetch data on yourself, but you'll need to go through some hoops to make it work on a permanent basis (ie. without a new session each time), like granting the offline_access extended permission.
I'm used to working with Twitter, where friend/follower totals are available in a simple XML request.
My goal is a simple "enter your username/user id, and display your friends count".
Is there something like this for Facebook? From what I gather, I'll have to make an application, and have anyone who wants to grab their friends total actually install that app from within their own Facebook profile.
Anyone have any experience with this?
You can get friend count by fql easily.
There is a friend_count field against the user table that you can query.
SELECT friend_count FROM user WHERE uid = me();
https://graph.facebook.com/fql?q=SELECT friend_count FROM user WHERE uid={any id}
You do need to set up an application, but it'll work as a Connect app - meaning that users won't have to access it through their Facebook profile at all. In broad terms you'll need to:
Set up an application
Implement Facebook Connect on
your site
Get users of your site to log in
with Connect. (You can't ask for
their username/password.)
Make a Friends.get call to the
API, probably with the JavaScript
client library (although there
are server-side ways you can do it)
Facebook provides an API for developers so you can grab information from Facebook. Check it out at the provided link.
Edit: From your tags, it looks like you are already familiar with the Facebook API. You can use the API with external applications or webpages - it doesn't necessarily need to be used within a Facebook app, if that is what you are asking.