Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,290 Members 46,090 Now Online
XDA Developers Android and Mobile Development Forum

Open links in official FB app - WP8

Tip us?
 
gipfelgoas
Old
#1  
Member - OP
Thanks Meter 11
Posts: 61
Join Date: Feb 2012
Location: Bolzano
Question Open links in official FB app - WP8

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


Current devices:

Nokia Lumia 820 RM 825
Microsoft Surface 2
 
EShy
Old
#2  
Member
Thanks Meter 4
Posts: 30
Join Date: Jan 2007
Quote:
Originally Posted by gipfelgoas View Post
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
Tags
code, facebook, integration, urilauncher
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes