Post on facebook user Pages using Facebook Grpah API PHP - php

I have scenario which I want to discuss with stackoverflow users that it is possible or not.
Scenario:
Suppose I have a facebook user unique Id and its page Id.Can I post On his pages using facebook Graph API or not. The user is not friend of mine.
If it is possible. Please provide me some sugggestions.

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.

Facebook Graph API: How to get pages liked by people who liked some other page

how can I get pages liked by people who have liked PAGE A.
e.g
https://www.facebook.com/search/100281786832302/likers/pages-liked
here, 100281786832302 is the Page ID of "Amazon India".
If its possible using PHP graph api.
Thanks
That´s not possible at all with the Graph API, i am afraid. The Graph Search is only available on facebook.com - for real users.
With the Graph API, you can only get the Page likes of a user who authorized your App with the user_likes permission. Check out the docs for example code: https://developers.facebook.com/docs/graph-api/reference/v2.2/user/likes

Can i create a facebook app for facebook page( i mean facebook page support apps)

i never used it so ask that facebook pages support facebook apps. Can i get all info of any facebook-page like we get facebook users info using apps.
i.e-> list of users who like this page today, all users list who like facebook page?
i have three facebook pages from 3 different account. i want to create any facebook app which will give all likes detail new post detail of these page using this app. if page owner once allow then my app can get list any time of users or post of any page who allow my app. is it possible?

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.

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