tags:

views:

336

answers:

2

I'm using the following code to authorize the application and then ask for permission because could not find a simple way to authorize it simply after logging in. But then the user gets directed to their homepage instead of the application homepage. Was wondering where am I going wrong with it.

<fb:if-is-app-user>
   <fb:else>
   <fb:redirect url="http://www.facebook.com/login.php?api_key=dxxxxxxxxxxxxxxxxxxxxxxx81&amp;req_perms=publish_stream&amp;canvas="http://apps.facebook.com/felinetest""/&gt;
  </fb:else>
</fb:if-is-app-user>

p.s I ask for streaming permissions too in the same page.

+1  A: 

The extra quote in after canvas= might be the problem; that is making the snipped invalid XML. You might try just eliminating the quotes around the canvas value and seeing if that works.

As an aside, you should probably edit your question to remove or obfuscate your API key, since I believe those are meant to be kept private.

mprudhom
Sadly still redirecting to facebook.com
Fahim Akhter
A: 

Hi,

I'm having this problem to but on a desktop application. Have you came to a solution ?

Thank you, Mosu'

mosu
It will probably not be appliable to you but ... I was setting the Sand Box mode for my application. This means that only the developers can log in. For other users there was a redirect to their account homepage. I hope is that simple to you too :-)
mosu

related questions