Facebook App Friend's Activity - php

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.

Related

How to get the "publish_post" equivalent

Scenario
I'm building an application that needs the ability to post to users wall (personal profile) on behalf of a user on facebook. I remember before the way that I would do it is request a permission "publish_actions" but reading through their documentation i came to this page:
https://developers.facebook.com/docs/graph-api/changelog/breaking-changes/#login-4-24
which states that that is being deprecated.
They recommended an alternative which is using their sharing product found here but this seems like it would break one of the functionalies of my current application (I dont want to share content i want users to post it to whenever they choose to on whichever account they choose to).
Question
Is there a way to get posting to a users wall and NOT an event, page or group. If i'm correct I can still post data to events, pages and groups via API as normal but to a users wall its different? I need to post on their wall via api but i can't seem to find the permission.
My facebook api graph version for my app is 3.0 and im using their PHP SDK to make the requests.

Is this possible to get info about followers of instagram users?

I want to do simple dashboard for all my IG accounts.
I need to get all followers (usernames or id) who follow a certain user.
For example all followers of user foo.
I tried to do this with PHP and scraper but I can't do that. List of followers is generated dynamically via AJAX or something like that and we got only small amount of followers using this method.
Is this possible to do that? I've searched for PHP Instagram scrapers, there's 2 really good but I can't find something with that option. I want to do this without registering Instagram client because I need to get that information without credentials of a certain user.
Using the Instagram API, you can only access the followers and following list of a logged in user(using access_token) , you cannot just any users followers, only the account you have access to.
Long time ago it was possible to access any user's followers, as of June 1st 2016, you can only access your followers and following (i.e the user you have login access to)

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.

Facebook Graph Api User Information

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...

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/

Categories