Unable to display wap version during "Extended permission"
Posted
by Mickey Cheong
on Stack Overflow
See other posts from Stack Overflow
or by Mickey Cheong
Published on 2010-05-09T03:20:06Z
Indexed on
2010/05/09
3:28 UTC
Read the original article
Hit count: 407
Hi,
Im trying to redirect to facebook to request permission to publish stream. However, it only works when i did not specify any display parameters, it shows me a web version of it. I wanted a wap version instead. What should I do?
Here's the code:
<form method="post" action="https://graph.facebook.com/oauth/authorize">
<input type="hidden" name="client_id" value="1XXXXXXXXXXXXXX" />
<input type="hidden" name="scope" value="publish_stream" />
<input type="hidden" name="redirect_uri" value="http://www.redirect.com/" />
<input class="button" type="submit" value="Request..." />
</form>
When i submit this form, it will redirect to http://www.facebook.com/connect/prompt_ … y=page....
If I were to change the "redirected url"'s display param to "wap" it will works. However, if I were to submit to https://graph.facebook.com/oauth/authorize?display=wap. Nothing will happen and it will redirect back to the source url.
Any help/hint will be grateful.
Thanks a mil, Mickey
© Stack Overflow or respective owner