Question: I have a solution with a C# project of 'library' and a project 'JavaScript' after that compiled it generates a .winmd file being taken to another project. But this project is built on x86 and I need to compile for x64, to run the application in order x64 get the following error:

```
'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/2.0)'. 
Unhandled exception at line 25, column 13 in ms-appx://2c341884-5957-41b1-bb32-10e13dd434ba/js/default.js
0x8007000b - JavaScript runtime error: An attempt was made to load a program with an incorrect format.
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
   at System.Runtime.InteropServices.WindowsRuntime.ManagedActivationFactory.ActivateInstance()
WinRT information: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
   at System.Runtime.InteropServices.WindowsRuntime.ManagedActivationFactory.ActivateInstance()
The program '[5776] WWAHost.exe' has exited with code -1 (0xffffffff).

```

Answer: 
It looks like you were making calls with no Access Token at all, to data that's publicly visible on Facebook.com

v1.0 of Facebook's Graph API was deprecated in April 2014 and scheduled for removal after 2015-04-30 - one of the changes between v1.0 and v2.0 was that in v2.0 all calls require an Access Token - the deprecation of v1.0 was phased and one of the last things to be removed was the ability to make tokenless calls - it's possible that's why you didn't notice this until recently

More info on the changelog here: <https://developers.facebook.com/docs/apps/changelog#v2_0> - under "Changes from v1.0 to v2.0"

You'll need to rewrite your app to make its API calls using an access token from a user who can see the content you're trying to create, or (possibly) using your app's access token (and given you had no token at all, you may also need to create an app ID for that purpose)
You need an App Access Token.

Go to <http://developers.facebook.com/apps/> and create an app for the client's Facebook page. When you're presented with the options, select the "Website" type of app. You can skip the configuration option using the "Skip and Create App ID" button in the top right corner.

Give it a Display Name, don't worry about the Namespace, and give it a applicable category.

Once the app is created, go to "Tools & Support" > "Access Token Tool" in the top menu.

You should see an App Token listed in green text. Copy that into your JSON call, and it should work.

```
$.getJSON('https://graph.facebook.com/616894958361877/photos?access_token=PASTE_APP_TOKEN_HERE&limit=100&callback=?', function(json) {
$.each(json.data, function(i, photo) {
    $('<li></li>').append('<span class="thumb" style="background: url(' + ((photo.images[1]) ? photo.images[1].source : '') + ') center center no-repeat; background-size: cover;"><a href=' + ((photo.images[0]) ? photo.images[0].source : '') + ' rel="gallery"></a></span>').appendTo('#timeline');
});

```

});