Facebook Graph Api User Information - php

throught facebook graph api I'm searching for certain events,
I'd also like to get information about user how participate those events.
Using facebook graph api I'm able to pull basic information about users - name , id and profile picture.
The issue is that i'd like to get user's age - and the problem is that I'm not creating a facebook application , but a website which pulls data from facebook using their api.
In order to get user's birthday I need a user_birthday permission.
I wonder if i'm able to get users' age without having this permission ? The fact those users participate a certain event matters ?
If I must have this specific permission , how do I get it ? Remember I don't create a facebook application.
Any suggestion would be helpful, thanks in advance

You need permissions
You need an app
So change your thinking about what a Facebook "app" is. Your webpage must make some calls to facebook's Graph or FQL endpoint. You must show the standard authorization window or web page to your users. However, in every other way your users will see a "web page", not an "app"
Your app can be a website-only app, ie there is no canvas page at http://apps.facebook.com/your-awesome-app
To start, goto https://developers.facebook.com and create an "app"
Then do some searches on google about "facebook" "user age" "authentication for websites", etc, etc...

Related

Trouble Accessing Facebook Friends without Login

I'm trying to understand how Airbnb is able to access Facebook Friend lists without an active Facebook logged in session. To see this in action follow this link:
https://www.airbnb.com/s/Austin?neighborhoods[]=Barton+Hills
Once there, select a listing and midway down the page you will find a "Friends" tab. Assuming the property owner has some Facebook friends, you should see the friend photos and when you hover over them, you will get a message "xxxxxxxx is a Facebook friend of xxxxxxx". Where the "xxxxxxx" are replaced with the friend's name and the property owner's name.
I've googled and yahood for an answer and found this on stackoverflow:
Accessing friend list in facebook
and this:
Facebook PHP SDK: get people in network and friends of friends
Neither of which is the solution I see on the Airbnb website. My thoughts are that Airbnb has some kind of special permission with Facebook to get this data or when property owners login using their personal Facebook info, Airbnb grabs the Friend data and stores it locally on their systems. Then they might update this every so often.
So, long story short, how does one get friend information on a public website about a Facebook member? Assuming you have a Facebook AppID and AppSecret.
You can't do this without the user logging in and authorizing the application to access his details and then possibly storing the id's of his of her friends.
The problem with that is is does not update when the user adds more friends, or existing friends join the site too.

Youtube, can I get data of user when they login with Google OpenID?

I want to get data about favourist list, another list or another playlist of Youtube default when user login with OpenID in my website, And I read YoutubeAPI but I don't find any place talk about this. But I see Jasmine (this is an app on iphone - it's like app Youtube) can get data of user when they login with Google OpenID. How can I do the same thing with Jasmine. Anybody, can show me some orientation to resolve this trouble. Thank you so much,

Facebook App Friend's Activity

What would be the correct way to retrieve a list of recent Actions/Objects for a particular app from the logged in user's friends or particular friend who also has the app installed?
Similar to how the Spotify app shows a feed on the right with all the logged in user's friend's actions e.g. "USER listened to X Song by Y Artist".
You can retrieve the list of actions, if you know the namespace and action type of the app. This should be straightforward if it's your own app. If it's some other app, you need to figure out what they are using for the same.
There are similar questions here -
How to get activity from my app with Facebook Graph API?
http://facebook.stackoverflow.com/questions/7553714/read-custom-action-from-the-open-graph-beta
There is more info here - https://developers.facebook.com/docs/opengraph/actions/#read.

Get Facebook Page Fan's Birthday To Send Birthday Greetings?

I was wondering if it would be possible to get a list of a Facebook Page fans and their birthday, then on their birthday have it post a birthday greeting on their wall? I want to do this without the use of a Facebook App and have it post directly from the Facebook Page to the users/fans wall (possibly using OpenGraph and PHP?). I just want to know if this can be done and what I should utilize in the Facebook API?
You cannot get details about a fan or post to their timeline / wall without using an app. There are separate permissions required to achieve what you are trying to do, and none of these are possible without using an app, and getting the user to install the app (with the correct permissions).
Use Facebook Ads and target your fan base only on their birthday. Facebook allows you to post the ad to fans but only on their birthdays. Click here for details
http://michaelbrandvold.com/blog/2011/01/2000-things-to-generate-20000-fans-wish-your-fans-a-happy-birthday/

get facebook user-id/username to fetch profile picture without Facebook SDK? PHP

I'm looking for a way to get a users facebook profile id or username which i can use to get the profile picture based on the users account. I know how to fetch the picture already (http://graph.facebook.com/username_or_id/picture). I don't want to ask the user to submit their fb username (or worse - their profile id), i need it all done automatically (happy user).
Now i have not setup a Facebook app to use the facebook SDK so i don't have a appID or a secret code...
The reason for not setting it up is because im working on something that not only i will use. It's a project where others will be able to use on their own domain and i don't want to ask the users to setup their own FB app just to get this working so im looking for a way to do it, without the FB SDK? or have i got it all wrong?
You can do everything without FB SDK (it's just a library), but you can do nothing without application. So no, you can't get user's ID without their knowledge

Categories