Facebook

System.IO.FileNotFoundException System.Windows.Application.LoadComponent facebooklogin

If ever your windows phone crashes without any real explanation, check:
1. startup app in project properties is set (otherwise nothing runs)
2. capabilities are correct, otherwise exceptions happen

For example to load a page that refers to an external web page, you need to have the WEB capability set.
Otherwise you get a really confusing error>
System.IO.FileNotFoundException in your System.Windows.Application.LoadComponent call to your page calling the external page – which makes you think it is your namespace or page name that is wrong…

Be the first to comment - What do you think?
Posted by admin - January 4, 2013 at 17:06

Categories: Facebook, Windows Phone   Tags:

facebook the first five

when I was writing my code for my facebook windows phone app, I noticed you can refer to people with a number and that Mark Zuckerberg was number 4… here’s the others:

4. Mark Zuckerberg, 4 Feb 2004, although timeline says 11 Feb 2004. Launched the wall on 5 Sept 2004
5. Chris Hughes, 17 Jan 2004
6. Dustin Moskovitz, 15 Jan 2004
7. Arie Hasit, 2004- (Arie signed up for facebook 3 weeks before the site started, according to his comment on 18 Jan 2004)
10.Marcel Laverdet, 2006-2011

Be the first to comment - What do you think?
Posted by admin - January 4, 2013 at 11:23

Categories: Facebook, General Blog, Tech   Tags:

Facebook development for Windows Phone 8

Some examples below. Note, you need to get your own access tokens… to get this, go to sample queries and copy/paste the access token.

examples
https://developers.facebook.com/docs/reference/api/search/

All about me (matches query in fb sample)
https://graph.facebook.com/me?access_token=XX

Profile = wall
https://graph.facebook.com/me/feed?access_token=XX

profile of friend
https://graph.facebook.com/4/feed?access_token=XX

get my friends
https://graph.facebook.com/me/friends?access_token=XX
each friend has an id, eg: 4 is mark zuckerberg

friends page for more information
https://www.facebook.com/4

picture
https://graph.facebook.com/{0}/picture?type={1}&access_token={2}”, id, “square”, _accessToken

of course, how you parse these things is a non trivial mess of IDictionary, JsonArray and JsonObject. However it does have a weird logic behind it, which makes it quite expandable. I’ll write a post on that later.

Be the first to comment - What do you think?
Posted by admin - January 3, 2013 at 15:31

Categories: Facebook, Win8, Windows Phone   Tags: