fanpage / app authentification fails
aheissenberger opened this issue · comments
Setup
website with fb login as fanpage tab
Problem
App Auth fails - facebook shows white page inside the fanpage tab content area
If App was authorized outside the tab - e.g. directly on website or mobile login to app works without problems
debugging data
REQ 01:
REQ: https://xx.xx.xx/xx.xx.xx/sociallogin/callback/facebook
RESP: location: https://www.facebook.com/dialog/oauth?client_id=999999999999999&redirect_uri=https%3A%2F%2Fxx.xx.xx%2Fxx.xx.xxt%2Fsociallogin%2Fcallback%2Ffacebook&state=890408542842831xb7b81e2x76143c2x&scope=email&response_type=code
REQ 02:
REQ: https://www.facebook.com/dialog/oauth?client_id=999999999999999&redirect_uri=https%3A%2F%2Fxx.xx.xx%2Fxx.xx.xxt%2Fsociallogin%2Fcallback%2Ffacebook&state=890408542842831xb7b81e2x76143c2x&scope=email&response_type=code
RESP: HTML with facebook header - see attachment - but this content is not shown
It is no bug in your framework - it is more of a problem of the facebook auth flow.
I fixed it by doing the app auth with the fb javascript sdk on the client side.
And I will add a check of the facebook app auth status with the current fb user to the auth filter