After soundcloud authentication, safari not opening the app - iphone

I have created an iPhone application. I have integrated with SoundCloudAPI.
To authorize it, automatically the application will launch the SoundCloud website in safari. After authentication, it is giving following error message;
"Safari cannot open the page because the address is invalid".
It is not coming back to my current application.
Please guide me to resolve it.
Thanks.

I have resolved it.
Issue is; I did not change the callback url.
Now it is working fine.

Related

Facebook browser CORS issue

Trying to figure out an issue that popped up in Sentry today.
I've never seen the 'Facebook' browser come up before, but here it is, all seem to be ios devices:
I don't really understand how there could be an origin issue here as the url listed has the same root domain. Has anyone run into this before?
This means someone is opening your url within the facebook app. Facebook app has its own browser shell to open the link within the app.
You will be able to replicate this issue if you open it from within the facebook app.

Cross Site Scripting (XSS) between facebook.com and m.facebook.com?

I'm developing facebook app on platforms: facebook canvas and website (to make it work on mobiles). The problem is that when I'm trying to click on my test app from m.facebook.com website in console i see error:
XMLHttpRequest cannot load
https://www.facebook.com/l.php?u=https%3A%2F%2Fm.facebook.com%2Fapps%2F…
No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'https://m.facebook.com/' is therefore not allowed
access.
And on screen inside facebook body: "No internet connection. Try again." When I click on "Try again" link situation repeats. But when I'm refreshing whole page application opens on web platform as it's supposed to.
Error shows before my app is called so I doubt it's my sdk configuration error.
I'll add that when I'm opening my app from android facebook application or from facebook.com website problem don't occur.
It looks like XSS between facebook.com and m.facebook.com websites. Anyone meet similar issue? Any ideas if I can solve it? I wrote report to facebook and waiting for answer from them as I'm not sure if it's my error or issue lies at their side.
Thx in advance for help.

windows phone 8: open facebook page in app from code

I need to launch the WP8 facebook app on a certain page, from my code behind, and if the app is not installed open the browser on that page:
right now i'm doing this:
var success = await Windows.System.Launcher.LaunchUriAsync(new Uri("fb://page/313689422066566"));
and I use success to try open the browser.
the app launches but it show my wall instead of the page, and if the app is not installet the phone ask me to search on the store in search of an app...
anyone can tell how to do this or where i can find some info?
thanks
Hey actually there's an undocumented (I found this by trial and error starting from this question) way to do this.
Launcher.LaunchUriAsync(new Uri("fb:pages?id=YOUR_PAGE_ID"));
What you're asking to do is not possible.
First, I don't believe it's possible to open the Facebook app to a specific page. I know you can use the fb: URI scheme to open the app and can even use fb:post?text=foo to start a new post, but I don't believe you can open a page.
Even if you could, the way URI schemes work in Windows Phone is that if the URI scheme is registered, it opens the app. If it's not registered, it asks you to install the app from the store. There's no way to send them to a web site instead that I know of.

How do I get Facebook to return to my app after login if using phonegap plain on iPhone?

I have a phonegap app that I use the Facebook plugin to implement single sign on. I registered am a native iPhone app since the app is not run in the browser. When I click on login I get an invalid URL error message. I suspect my problem is either I need to specify a URL which I have tried using channel in init but I get a URL not allowed with this configuration. The other problem may be that I need to register this application as a web app. However using phonegap the application does not have a url. I don't know what to do.
Any help is appreciated.
Thanks!
Did you look at the iOS URL scheme section of the Plugin's readme?

Open IOS Application which uses sharekit via fbconnect and/or sharekit from facebook app or facebook website

Does anyone of you know if it is possible to open a App which uses sharekit from a Facebook request by clicking on the request either in the facebook app, or in the browser?
I could not find anything about this in the web.
To be more precise i want my app which uses sharekit to send a request to a facebook-friend. This facebook friend should then be able to open the same app by clicking on the request either in the facebook app on his mobile device or by clicking on the request on the facebook browser page which is opened on his mobile device.
I already know how to share things in facebook via sharekit, but to get it "the other way round" seems to be difficult. I could not find anything helpful in the web so far.
Greets and many thanks in advance,
Maverick1st
Yes. Your will will need to register itself as a protocol handler, and the link clicked on from Facebook app would need to use the url scheme you define.
Example:
my-social-app://invite/1234
Keep in mind if the recipient does not have the app installed, or they do this on their desktop machine, they will get a message that the phone is unable to open that URL.
See this tutorial: http://mobileorchard.com/apple-approved-iphone-inter-process-communication/