0

How can I make my (javascript) app to post to a Facebook page (that I own), without the need of explicit login (no pop-up windows) ?

From what I have read, I need a page_token to be able to post. Can I get this token using my credentials, or a facebook app ? I want to create post when a user does something in my app, but I want to avoid asking my users for their passwords. Thats's why I want to use my password for all users or use a facebook app for this.

Can it be done ?

Marius Cotofana
  • 1,149
  • 1
  • 11
  • 14
  • Exposing your page access token in client-side code would be just plain stupid – everyone could steal it from there, and then use it to post in the name of your page. – CBroe Apr 28 '14 at 01:01
  • I had no intention in doing that. But I appreciate your concern. – Marius Cotofana Apr 28 '14 at 10:04

1 Answers1

1

You are right, you need a page access token to post on a page on he page's behalf.

You can get a never expiring page access token that you can use while creating the posts. I've explained the procedure of getting the token with steps here: Get access token to facebook page - WPF.

After you get this token, use this token with the call by adding the parameter access_token.

Community
  • 1
  • 1
Sahil Mittal
  • 20,697
  • 12
  • 65
  • 90