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)
I finally realized that since May 1, it is **necessary** to create an app and then generate a token and use it in my JSON call URL.

So this:

```
 $.getJSON('https://graph.facebook.com/616894958361877/photos?limit=100&callback=?

```

Became this:

```
 $.getJSON('https://graph.facebook.com/616894958361877/photos?access_token=123456789123456789|ajdkajdlajfldkeieflejejf&limit=100&callback=?

```

I've replaced my actual token with random numbers, but it's basically a giant string of numbers and letters with a pipe in the middle.

For me the confusing part was needing an "app" when I'm not using a mobile device. I also didn't realize that Facebook had actually deprecated the old methond.

Creating an app is simple... go here and follow the steps:

<https://developers.facebook.com/apps/>

Leave the "NameSpace" field blank... not sure what that is exactly and it's not required. 

Generating the token string took a few more steps which a friend from work walked me through... I can't remember off the top of my head, but once you get the string and insert it into your JSON call, it will definitely work.

The REASON for this is so when Facebook receives a data request from some random website, the request comes with a built-in ID so Facebook knows who is asking for the data.