Facebook login page
-
18 Nisan 2012 Çarşamba 07:26
Hi,
I am using Azure for authentication into mobile application. But I have one problem. I need adjust the login page of Facebook provider. When I use login with Facebook provider, the classic login page appears (this page is optimized for desktop computers). But I need to display mobile login page (m.facebook.com) that looks much more better on mobile devices.
Is here any possibility to display mobile Facebook login page (m.facebook.com) instead of classical Facebook login page (facebook.com)?
Regards,
Radek.
Tüm Yanıtlar
-
19 Nisan 2012 Perşembe 02:30Moderatör
Hello,
Accroding to your description, you mentioned that the default FaceBook login page is not m.facebook.com and looks not very good in Mobile application, right?
I suggest your create a HttpRequest to get metadata from ACS and modify its LoginUrl property tohttp://m.facebook.com, request url look like this:
https://storycreator.accesscontrol.windows.net/v2/metadata/IdentityProviders.js?protocol=javascriptnotify&realm=<Your application Realm>&version=1.0
Hope this helps.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
- Düzenleyen Arwind - MSFTModerator 19 Nisan 2012 Perşembe 02:32
- Yanıt Olarak İşaretleyen Arwind - MSFTModerator 24 Nisan 2012 Salı 07:11
- Yanıt İşaretini Geri Alan mautilus_conn 25 Nisan 2012 Çarşamba 09:45
-
24 Nisan 2012 Salı 13:38
I have tried to modify loginURL with replacing www.facebook.com to m.facebook.com (the rest of URL address remains the same).
in WALoginWebViewController.m i write
NSString* lu = [_realm.loginUrl stringByReplacingOccurrencesOfString:@"www.facebook" withString:@"m.facebook"];
Unfortunatelly, the responses from this "mobile" page probably are not correct and therefore the login procedure does not perform correctly...
Probably, certain other modification should be done in WALoginWebViewController.m but I am afraid of lost of functionality of other identity providers.
Regards, Radek.
-
15 Haziran 2012 Cuma 19:34i know am getting that problem is it because my laptop is actaly my schools :/