Gayan
Gayan

Reputation: 2871

how to send daily post on facebook?

hi please if anyone knows that tell me how to send daily post to application user's wall using facebook application. i need a PHP script how to post message user wall.

thanks

Upvotes: 0

Views: 1857

Answers (3)

Sid
Sid

Reputation: 303

You cannot post directly to the user's wall without first asking for the *publish_stream* permission during the app authorization process.

You can find more information on permissions here - http://developers.facebook.com/docs/authentication/permissions/

Also note that Facebook recommends a "user-initiated" sharing process. Which means, even if the user gives you the *publish_stream* permission, you'll probably get into trouble if you start spamming the user's wall every day without the user taking any significant action on your application.

Upvotes: 0

Shekhar_Pro
Shekhar_Pro

Reputation: 18430

This question is supposed to be asked on StackOverflow

However, the Facebook documentation has an php example for this. You can also use PHP SDK for this.

For publishing to user's wall your app need to have publish_stream Extended permission and then you can issue a POST request to http://graph.facebook.com/[username/userID]/feed

Like:

curl -F 'access_token=...' \
     -F 'message=Hello, Arjun. I like this new API.' \
     https://graph.facebook.com/arjun/feed

Upvotes: 3

Edward Ashak
Edward Ashak

Reputation: 2441

U could make a cron job that runs a php script to make it post to your facebook

Upvotes: 1

Related Questions