We created the Facebook Tab Page app with Like Gate . We have done this countless times, and in this respect there is nothing unusual in this application.
In our ASP.Net 4.0 Web Forms application we used the Facebook C # SDK , with the latest version (6.4.2) pulled directly from NuGet and the following C # code:
public static bool IsPageLiked(string appId, string appSecret, string signedRequest) { var fb = new FacebookClient { AppId = appId }; dynamic req = fb.ParseSignedRequest(appSecret, signedRequest); return req.page.liked; }
We used this code several times before, and we never had any problems with it. The application and its Like Gate work well on the Unpublished page - so only Page Admins , which in the corresponding Application Roles can see the application.
We see an intermittent error. This affects only some users, but these users reliably view the message when they like or unlike the page on which the Tab application is located:
This content is no longer available.
The requested content cannot be displayed right now. It may be temporarily unavailable, the link you clicked may expired, or you may not have permission to view this page.
This error message is what you get if you try to access something you donβt have permission to. However, users are still Page Admins, so their permission to view the application and page does not change.
Google suggests that this is a mistake at the end of Facebook that no one has found a satisfactory solution. Oddly enough, our client is not very impressed with this answer.
Does anyone have something more constructive that they can offer? You are welcome?:)
facebook permission-denied facebook-c # -sdk
Owen blacker
source share