Get Facebook's users' application list - facebook

I want to ask a question:
When a Facebook user use my apps, can I retrieve their application list?
I have a scenario that will require this:
People play my game.
If they have already play another game of mine, then they will have a bonus gift.
So I need to know if they've already used that another app or not. :)

You can use "me/accounts" for see all app of current user
(example : https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Faccounts )

So I need to know if they've already used that another app or not.
Then you’ll have to save the user ids of people playing your games into your own database.

Related

Can I use facebooks game service for leaderboards and to send push notifications

I'm making a mobile game in Unity.
I would like to have a leaderboard of high scores for a person and their facebook friends who have also played the game.
Also I would like for a push notification to be sent to a player if one of their friends beats their high score.
Would it be possible to achieve those two things using facebooks game service? Or would I need to write a server of my own to handle this?
(ps. its ok if for example the person who got the high score is asked 'would you like to tell derp, herp and glerp that you beat their high scores' and it works that way)
I'm asking here as facebooks game service doesnt seems to have anyone I can email for support or even a forum (Only a closed facebook group which I am still pending)
Facebook allows you to store 1 variable per user, so you could use that to store a score for each user and make a leaderboard based on that.
For push notifications there are two different kinds, one is actually called local notifications and you can make those for free without a server, but the user has to open the app for you to schedule them.
If you want to use the push notifications to react to a user beating a score you would either have to have your own server or use one of the many services out there. Some are even free like this one: https://onesignal.com/?gclid=CjwKEAjwm_K_BRDx5o-sxq6ouXASJAC7TsFLhiWC9-XUm1Sryg6zgEeQU49wLR7_H3WzzwOAnhX_exoCYIzw_wcB (you would have to read up on it though, I just searched around a bit.
You can also ask your user if they want to tell their friends on facebook that they beat their score, but before you can do that you will have to gain the permission of the users involved. Once you get in to the facebook documentation there is a guide on how to do this.
Hope it helps
Peter

mobile: get facebook users around in a certain location

I'm new to developing mobile apps, and I'd like some help. I'm trying to create an app that, upon downloading and opening it, tells you nearby Facebook users. Will this have anything to do with the Facebook API? What is the easiest way to do this? Any examples or references would also help a lot.
as far as i know Facebook not have an option to get the friends by coordinate or something like that,
what you can do is create a database that stores your app users location and when a user logs in to your app you show him results by this database.
Hope it Helps.

How do I store a user data for a FB application?

Say, I wrote a flash game for the Facebook and I want the user to be able to view his playing history (dates, points, highscores...). Do I necessarily have to build my own database for that? Are there any other options? I mean, ANY?
Facebook will provide some general statistics about your app (like the number of views), but if you want something as specific as points and high-score statistics, you will have to use your own database.
You could have your app publishing scores to Facebook, and also read them back from the API: https://developers.facebook.com/docs/scores/

Facebook: detecting user apps

Hello I've read the docs and am having trouble getting a definitive answer for the following questions:
Can our app detect if another app is used by a given user. What about if we are admin of, or have the id of both apps.
If one of the apps is removed from FB is there a way to tell if a user had it installed before it was removed? A sort of history of past apps, I guess.
Here:
FB Connect: is there a way to see the logged in user's facebook apps?
Best answer is "I think the most you can do..." but I'd like to know for sure.
Thanks for any help.
If you request the permission user_actions:APP_NAMESPACE you can see the open graph actions that the user has performed in that app.
http://developers.facebook.com/docs/authentication/permissions/#open_graph_perms
In my apps I generally store the user ID of all authorized users in a database, and when I get a call via the "Deauthorize Callback URL" I don't delete the user from the database, but instead only flag the user as deauthorized.
This way I can easily get an overview of users that are using (or have used) any of my apps. This allows me to present special features for users who are using several of my apps.
For example, let's say I made a photo app (like Instagram) and a GPS running app (like Endomondo). If the user takes a photo with Instagram while running with Endomondo, I could present the option to GPS-tag the photo, or add the photo to Endomondo.
This is something that I think we developers should use more. Perhaps present an open API to other apps, to let the apps work together.

Store data of people who clicked on a button on Facebook

I would really appreciate some help with the Facebook application I currently work on.
I developing a simple Facebook application, and I need to store the data of the people, who click the "I want to win button". I'm not sure if I should use plain, old vanilla PHP, or if the Facebook API provides some simple way to do that, so I would be really glad for some ideas about this.
I read about the topic, but I can't really "see the Matrix" yet, so every answer is appriciated. Also I'm more interested in ideas and not the implementation, as I'm fairly confident in my programming skills.
Thank you everybody!
Richard
You will definitely need to use an external db, coz facebook will not store the data for you. However facebook does store the connection that a user makes with the app, i.e. when a user gives some(even basic) permissions to your app. Hence when an old user comes to your app you can know which, and if it is an old user.
Facebook sends your entry script a signed_request, which contains data about the user visiting your app, this request will have a user_id field only if the user has made the connection/authorized your app, hence you know if it's an old user or new.
Once you have the user_id you can call the graph api to get info about the user. In the php SDK you can easily call $facebookObject->api('/me','GET'); to get user info.
You can easily call the functions anytime, so if you want to make a call when a user clicks your button, you can do that.
Check out the links i have included, thoroughly, you'll get the idea.