Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Open links in official FB app - WP8

OP gipfelgoas

31st May 2014, 12:52 PM   |  #1  
OP Member
Flag Bolzano
Thanks Meter: 11
 
61 posts
Join Date:Joined: Feb 2012
More
Hi,
I wanted to integrate into my app some FB features. I found some information, that I can launch the official FB app by:
Code:
Windows.System.Launcher.LaunchUriAsync(new Uri("fb:pages?id=<<ID of page>>"));
Therefore my question:
1. Does anybody knows how to convert the FB URL (e.g. https://www.facebook.com/bild) into the ID required for the Uri Launcher?
2. Does anybody knows how to determine whether the URL was a profile, a page, a group, an event or something else?

I googled it but found no official documentation.
Thanks
16th August 2014, 01:59 AM   |  #2  
Member
Thanks Meter: 4
 
30 posts
Join Date:Joined: Jan 2007
More
Quote:
Originally Posted by gipfelgoas

Hi,
I wanted to integrate into my app some FB features. I found some information, that I can launch the official FB app by:

Code:
Windows.System.Launcher.LaunchUriAsync(new Uri("fb:pages?id=<<ID of page>>"));
Therefore my question:
1. Does anybody knows how to convert the FB URL (e.g. https://www.facebook.com/bild) into the ID required for the Uri Launcher?
2. Does anybody knows how to determine whether the URL was a profile, a page, a group, an event or something else?

I googled it but found no official documentation.
Thanks

You need the page id, easiest way to get an id from a url is to use this tool
Post Reply Subscribe to Thread

Tags
code, facebook, integration, urilauncher
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes