Callback url not working while integrating Twitter with iOS - iphone

I am using mgtwitterengine to implement twitter login on my ios app. I'm having trouble logging in to my application using this library.
After giving my twitter username/password, I am redirected to the landing page of my website (on Twitter development settings, I have given a callback url to http://mywebsite.com and I am redirected to mywebsite.com after giving my username/password and signing in). How do I get it to redirect to my application's home page?

I was facing the same issue before.Removing the callback url from the development settings will automatically redirect to your application's home page.Hope this helps you.

Callback URL is not going to be used by your iOS or Android app. So, it doesn't matter what you enter here, as long as it's a valid URL such as [ https://pratik.com ] or [ http://myAppName.com ]

Related

You are not logged in.Please log in and try again.(iOS)

I have implemented Facebook Login using OAuth 2.0 in my xamarin.forms application.But when I try to navigate to facebook page it gives following error:
You are not logged in: You are not logged in.Please log in and try again.
It works fine with android but not working with ios.
I have searched it but didn't get working solution.
I got the solution:
Redirect URL should be same ,when you request for Facebook login and in Facebook settings(Valid OAuth Redirect URI's).
Thank you.
If you intend is testing the app in a staging environment, leave the iPhone Store ID field blank and it will allow you to save the iOS platform and test.

How to open the Facebook app during OAuth in Ionic?

I just got my app working with $cordovaOAuth from ng-cordova and I've read and understood all from Nic Raboy's post (http://blog.ionic.io/oauth-ionic-ngcordova/). It works fine: both the inAppBrowser and the authentication itself.
But I want to take it one step further: how can I redirect the OAuth call to the installed app itself? For example, if I was using Facebook OAuth, how can I open the actual Facebook app (if installed - how to check it?) instead of a browser?

Facebook iPhone web app Authentication not working

i have made a web app for the iPhone that connects to facebook using oAuth.
When i try this on my computer everything works fine: i can click login on my page, it redirects to a authentication page of Facebook, i click OK, redirects back to my page and i'm logged in.
When i do the same thing on my iPhone: i tap login on my site, it redirects to the facebook auth page. But THEN it changes to a mobile page and that page is just blanc. There is nothing on it and the 'title' is "UNTITLED"...
How can i fix this ? (or is this a bug at Facebook ?)
Thanks
Evert
In the Facebook Developer page for your app, have you enabled "Native iOS App" checkmark
and the fields in that section.
Like you have to specify the bundle id of your app, you have to enable Facebook login radio button and also you have to enter the url scheme of your app in the Url Scheme suffix field.
Standard is to prefix fb to your fb app id and use it as the url scheme.
Also make sure you enter this urlscheme in the Xcode project in the info.plist file
under URL types . This will be used to redirect to your app once the authentication is successful/failed.

App on Facebook mobile gives me 4oh4 / 404

we have created a Facebook app, but when opening this on a mobile (via Web or iPhone) the page results in a 4oh4 error. I have setup a Mobile Web URL but still (after 1 hour wait) gives a 404.
Do I need to make specific changes on my app?
Please help.
This is expected as #Igy stated. You will need to have a handler to support redirecting mobile users to your apps.facebook.com/ or you can redirect them out of Facebook to your own URL if you are going to try and link to your page directly with an app embedded as a tab.
i.e. point link to http://yoursite.com/redirector
is mobile goes to http://yoursite.com/myapp or http://apps.facebook.com/
non mobile goes to http://facebook.com//app_
Some things to note:
You won't get any page specific data back from facebook on your page (i.e. Liked or Not Liked).
Based on #1 you won't be able to restrict the non-liking app users from a page.
After trying everything under the sun to get Facebook to redirect to a mobile web URL, here is what I needed to do in order to get the redirection working:
Make sure the Facebook application is a canvas application. This gives you the ability to give the application a namespace.
Give your application a namespace so that you can access it through https://apps.facebook.com/NAMESPACE. From here, Facebook will do the detection for you, and if needed, redirect your users to your specified mobile URL.
Make sure your app is NOT in sandbox mode.
If your app is in Sandbox Mode, Facebook won't redirect you to the mobile version you have specified in your app settings.
Facebook does the redirecting for you, you don't have to. Although their version of what "mobile" is and what you deem "mobile" might be different.

Facebook canvas app vs Facebook mobile web app

I'm a bit confused about the difference between a facebook canvas application and a facebook mobile web application. Here is the context of my confusion..
I have a canvas application, let us call its namespace as myfbapp, and I basically can access it from https://apps.facebook.com/myfbapp and after I login to FB it opens up with in Facebook. I'm using java (apache / tomcat) for my server side implementation and for simplicity sake let us say I just have an index.html and a authenticationfilter.java (which implements Filter) in my web application. I don't have any Facebook specific Javascript API (no FB.init() javascript or anything like that ) or code in my index.html. Whenever user accesses my canvas application I first get a request to my web application where I get the signed_request , oauth_token , FB user ID etc which I can use for my internal authentication, session creation etc. I have absolutely no issues with this canvas application and every thing works fine. Please note that when user accesses this app the request I get from the browser to my app server has the signed_request , user_id etc.
Now I wanted to make this app available on mobile devices as well and I thought, oh well all I need to do is add the mobile URL for this app in the mobile web app section in Facebook for the same myfbapp. I did that and as expected when I login to facebook from my android phone myfbapp is listed under the apps section, so far so good. The problem starts when I click on the app. I get the request on my app server but it doesn't contain the signed_request , user_id etc.. ????? I was expecting the mobile app to work the same way as the canvas app but apparently it doesn't or I'm doing some thing wrong.
Then I started reading more about facebook mobile app at http://developers.facebook.com/docs/guides/mobile/web/#register where it talks about adding various Facebook Javascript API's in the index.html (I never did anything like that in my canvas app) and then I started thinking , may be then mobile web app is more (or exactly) like a regular web app with FB connect and not like canvas application (meaning it doesn't really load with in Facebook) , is this true?
On mobile facebook you can not see any custom pages/tabs. They are apparently wokring on that at the moment.
So it will be different to a canvas app. Your mobile app will be a completely seperate site and page not in an iFrame on Facebook.
Some behaviour i discovered recently with Facebook Canvas / Page Tabs on mobile devices.
Maybe this helps to understand a little bit better how facebook behaves in mobile context.
Mobile Browser
Access App URL
Example URL http://apps.facebook.com/myapp/
Redirects to the configured mobile website under Settings > Website > Mobile Site URL and adds additional params /?ref=web_canvas&code=<signed_request_code_field>
About the signed_request code field
An OAuth Code which can be exchanged for a valid user access token via a subsequent server-side request
Access App Center
There is no way to access the Facebook App Center via the mobile browser.
Access Page Tab
Example URL http://facebook.com/a_facebook_page/custom_page_tab_url
Custom Page Tabs are not visible via the mobile browser.
Facebook Open Graph Search
Searching for myapp returns the link to the Facebook Canvas.
Same behaviour like Access App URL via Mobile Browser
Mobile Facebook Client
Access App URL
There is no way to access this url directly.
Access App Center
There is no way to access the Facebook App Center.
Access Page Tab
Example URL http://facebook.com/a_facebook_page/custom_page_tab_url
Custom Page Tabs are not visible via the mobile facebook client.
Facebook Open Graph Search
It says that this app is not compatible with this devices.
You need to register an iOS / Android App and send the user to this app to get rid of this error. Probably it helps the user if you add the link to the standalone application to the Facebook description of the app. Which should then be visible there.