We have an application that is a Facebook iframe app. We are using the older 6.x-2x version. We wanted to utilize the open graph to pull in friend data (couldn't do everything we needed in the REST API - at least we couldn't). This is what we did:
1) Utilize our existing Facebook for Drupal App
2) Developed an external php page using the PHP code to authenticate, used same ID+secret key info from 1) to pull in friends (works)
3) Utilized iframe inside 1) to link to 2)
This works most of the time. However if the user is dormant or comes back to the app within facebook after some time, it doesn't seem to pull in the authentication again and I can't access the file. Only if I open the page directly does it work.
Comments
Comment #1
Dave Cohen commentedSounds like auth tokens are expiring.
If I were you I'd upgrade to 6.x-3.x-dev, which uses the new facebook sdk, so you don't have to jump through hoops to use the graph api.
Comment #2
drupal3008 commentedThanks Dave - that is in our plans but we're trying to minimize any further problems with the site as is. If that's the issue, any ideas or issues you can point me to for a temporary solution to this?