Jingqiang Zhang
Jingqiang Zhang

Reputation: 1049

How to redirect to application page after installing application to one's page or app?

Now I want to automatic redirect to facebook application's index page after user installing the application to his/her facebook page.

My method is use the href tag as below:

<a href='http://www.facebook.com/add.php?api_key=".$APPID."&pages&perms=publish_stream&page=".$paID."' target='_top'>Add APP</a>

I have tried some ways such as add redirect_uri or next or post_authorize_redirect_url as parameter to the add.php link,but they all redirected to the facebook page or application after installing.

Then how to realize it?

Useful link

http://developers.facebook.com/docs/authentication/

I know that it can redirect after authentication.Such as:

https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=https://www.facebook.com/connect/login_success.html&response_type=token

But what is after installing?

Upvotes: 1

Views: 1231

Answers (2)

Xenon
Xenon

Reputation: 815

https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL

Client ID is your app id Redirect uri is your callback page

For more you can look at this page

Upvotes: 0

Igy
Igy

Reputation: 43816

You could just use the API to add the app to the page? https://developers.facebook.com/docs/reference/api/page/#tabs

Upvotes: 2

Related Questions