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/
Related
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.
I want to link a user to make a share post on my fb company page without having to authenticate. Currently I can get them to share on their own wall with:
But I'm not sure how I can get this to share to a page's wall rather than their timeline.
I got somewhat close by using the dialog feature:
https://www.facebook.com/dialog/feed?app_id=xxx&link=xxx&picture=xxx&name=xxx&caption=xxx&description=xxx&redirect_uri=xxx
But that just showed it as a normal share but done "via appName", unless there is a step I'm missing to link my app to my facebook page?
Thank you!
Unfortunately, the sharer.php method is used only to share only on the user's timeline.
If you want to ask the user to post on a page's timeline, you have to create an app, ask the user to authenticate it and then use the Facebook APIs to post on their behalf. I guess that will be cumbersome in your case, so I would just suggest you redirect to the particular Facebook page.
You can't !
To publish on YOUR page timeline, users need to have the rights to do it (be admin, writer, ...) : it's a manual requirement on the Facebook interface.
OBJECTIVE: I need to display latest 5 entries from users timeline on website, using PHP.
Please not that i speak about timeline of user profile - not fan page, not group.
SO FAR I DID THIS:
Registered as Facebook developer
Registered app
Obtained token
Opened url: https://graph.facebook.com/USER_ID/feed?access_token=MY_TOKEN
Voila. Feed of that user is displayed now, but..
PROBLEM: So now i have users feed, but it looks like its partially working.
It happens often that it don't displays some updates, sometimes it displays just date of the post and not the content.
However when i try to grab feed from some facebook fan page, then everything work normal.
MY QUESTION: Are we allowed to grab user timeline? If yes, what im doing wrong?
You won't ever see all the information that is visible inside the Facebook app via the api. This comes from how Facebook filters out the data. See this Facebook Developers blog post for more information: https://developers.facebook.com/blog/post/478/
Yes you are allowed to to grab user timeline posts, even with a limit, if your app asks for read_stream permission. Issue an HTTP GET request to the below URL:
https://graph.facebook.com/user_id/posts?access_token=token&limit=5
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...
Does anybody know how to make news feeds appear as from Facebook Page owner?
IE. I have few page admins on FB, and I have Facebook Integration on my website (PHP), and when someone posting announcements on Facebook thru the website all that feeds are appearing as personal feeds.
Thanks!
You would need to prompt the admin for the additional scope of "manage_pages", then access /me/accounts to get a list of access_token's and pages they manage, and then post a message like normal using that special access_token. There is a good walk through of this: http://www.sergiy.ca/post-on-facebook-app-wall-and-fan-page-wall-as-admin/