Question

I need 2 url schemes for my app. One for Facebook, one for VK (Russian social network).

Right now I set it this way:

enter image description here

Is it correct way or I need to create additional item in URL types?

Was it helpful?

Solution

What you have done seems correct. Though I haven't used VK before, I often do this to allow for Facebook and a custom URL scheme, usually based on the app's name.

For instance, I used two URL schemes here and can successfully open the app with both.

enter image description here

I sometimes use the URL scheme to determine when a call is not from Facebook.

if ([[url scheme] isEqualToString:@"m*****"])
{
    ...
    return YES;
}
return [FBAppCall handleOpenURL:url sourceApplication:sourceApplication];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top