开发者

Silverlight - Access Facebook Api on Client Side or through Server Side Wrapper?

I am wonder开发者_如何学Going how to access facebook api best using Silverlight.

Right now i am developing a silverlight(+ria services) app for facebook.

I see 2 possibilities:

1) Access facebook api using the facebook developer kit for silverlight (Facebook.Silverlight.dll)

2) Create a service class on Server Side which acts as a wrapper for easy facebook api access (Facebook.Web.dll)

Thanks for your help


You should create a service class on your Server Side that calls the Facebook API, then call your service from your Silverlight client.

Client browser security in general (and therefore Silverlight) means you can't make a cross-domain call in this case from your Silverlight client to an external site unless Facebook provides a "clientaccesspolicy.xml" file.

Have a look here for more: http://msdn.microsoft.com/en-us/library/cc645032%28VS.95%29.aspx

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜