开发者

Setting up facebook API using Visual Studio

I am newbie in developing and learning to develop windows 7 phone application. I was trying to run the sample code for Graph API of facebook on https://开发者_JAVA百科github.com/facebook/csharp-sdk the compilation of facebook API was successful but when I try to run the example code given, it gives me error "Type or namespace name 'facebook ' could not be found. I have added facebook.dll in the project references

can anyone tell me the exact procedure to follow please ?

thanks


Humm the dll was compiled for which type and version of .NET ? If it's a "desktop" .NET 3.5/4 project, you can't use it directly in your WP7 project.

You need to create a new Class Library Winows Phone 7 Project (Facebook.WP7 for example) and add the existing source files from Github to it. And now you can reference this project in your WP7 project.


Which Facebook.dll you referenced in your project??? There is separate one for WP7 and Desktop version of the kit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜