YAFLogo

ChrisMaga
  • ChrisMaga
  • 57.2% (Neutral)
  • YAF Camper Topic Starter
6 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
6 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: 3.0.3
6 years ago
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.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
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