Reputation: 1
Can anyone suggest how to do automatic authentication via Facebook API. For example I have a login and password, and I need to automatically get access_token. While that comes to mind only the cURL. What are some solutions?
I want to simplify the steps through the login PHP SDK.
Upvotes: 0
Views: 528
Reputation: 43816
If this is for unit testing, check out the Test Users documentation, because Test users when accessed via the API have a login_url you can hit automatically and get a user session.
For other use-cases, follow the regular Authentication docs - there is no user/password login option via the API - you need to use the Oauth flow
Upvotes: 1