I’ve made a facebook application and added it to a fan page. I’ve also added some code to send friend requests and it redirects fine after the dialog.
However, the notifications received by friends are pointing to a URL of this type:
https://apps.facebook.com/APP_NAME/?fb_source=notification&ref=notif
Instead of this type:
https://www.facebook.com/PAGE_NAME/app_123456789
Is there a way to set up notifications so they point to the second URL ?
My current Application setup is as follows:
Website with Facebook Login
App on Facebook
- Canvas URL: http://ssl.mysite.net/…
- Secure Canvas URL: https://ssl.mysite.net/…
Page Tab
- Page Tab URL: http://ssl.mysite.net/…
- Secure Page Tab URL: https://ssl.mysite.net/…
Of course they do – the requests docs mention this very clearly, that accepting a request will always take the user to the canvas URL of the app.
No. But you can use JavaScript on your canvas URL to redirect to the page tab URL.
If you want to do this in general, or only under specific circumstances (is it a request at all or just a normal visit of the canvas page, does the request have special parameters deposited in it’s data parameter, etc.) – that’s up to you.