YAFLogo

ChrisMaga
  • ChrisMaga
  • 57.2% (Neutral)
  • YAF Camper Topic Starter
8 years ago
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:

https://developers.facebook.com/docs/facebook-login/permissions [/b]

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
  • ChrisMaga
  • 57.2% (Neutral)
  • YAF Camper Topic Starter
8 years ago
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
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
8 years ago

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?

Originally Posted by: ChrisMaga 

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.