ChrisMaga
2017-01-17T19:58:09Z
Hi Developers,

I am trying to integrate Facebook login on my YAFNET forums v2.0.0. I have been following the instructions about its integration (https://github.com/YAFNET/YAFNET/wiki/Facebook-Integration), and completed all steps. I can see all buttons for facebook login/register. However, when I try to click on them to login/register with facebook I get the following error from facebook:

Invalid Scopes: status_update, publish_stream. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.faceb...cebook-login/permissions 

My facebook script is located on my site.master file becaue I am using ASP.NET MVC, and both App ID/App Secret are entered in my web.config file
window.fbAsyncInit = function() {
FB.init({
appId: 'myID',
xfbml : true,
version : 'v2.8'
});
FB.AppEvents.logPageView();
};

(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));


My questions are the following:
1. Should this script be in site.master file or somewhere else?
2. am I missing something?

Thanks
Sponsor
ChrisMaga
2017-01-17T21:47:29Z
EDIT: it seems status_update and publish_stream are already deprecated. Can someone tell me how to fix them in yafnet forums v2.0.0?
tha_watcha
2017-01-19T10:26:59Z
Originally Posted by: ChrisMaga 

EDIT: it seems status_update and publish_stream are already deprecated. Can someone tell me how to fix them in yafnet forums v2.0.0?



The only way to resolve it is to upgrade to the latest version. Or you manually apply all the changes to the source code and recompile the complete solution in Visual Studio.
UserPostedImage

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved