jackiechou
2016-03-06T04:23:28Z
Hi,
I'd like to share on facebook, register, and login thru Facebook with Single Sign On. I have set up Enable Single Sign On in Host Settings with YAF.FacebookAPIKey and YAF.FacebookSecretKey in app.config.

<add key="YAF.FacebookAPIKey" value="xxxx" />
<add key="YAF.FacebookSecretKey" value="xxxx" />

But I've got error belows:
Quote:

Invalid Scopes: offline_access, 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 



Please help me how to register, login and share post on facebook

Thanks for advanced,
Jackie
Sponsor
jackiechou
2016-03-24T16:19:54Z
Go to Facebook for developers  dashboard
Click My Apps and select your App from the dropdown.
(If you haven't already created any app select "Add a New App" to create a new app).
Step 1) Go to App Setting > Basic Tab -> Contact Email (Fill the email id you want your app to sync with) and then click "Add Platform" at bottom section,
Select "Website" and the add the website to log in as the Site URL(e.g. mywebsite.com)
Then you can add App Domains which I set to our website's base domain (e.g. for a URL like http://www.mycoolwebsite.com , just use mycoolwebsite.com).
If you are testing in local, you can even just give the localhost URL of your app.
eg. http://localhost:8080/myfbsampleapp
At the bottom right - click "Save Changes"
Make sure you have the app ID copied and pasted correctly into your code. (The ID is in the first box on that page if you need it again.)
and you can now access Facebook information from http://localhost:8080/myfbsampleapp
facebook add site


Step 2) Goto Settings -> Advanced -> see "OAuth Settings" area and set "Valid OAuth redirect URIs" = http://localhost/ , Try doing the following stuff and check if it works out.
Step 3) Enable "Embedded browser OAuth Login" option
Step 4) Goto Status & Review -> Status -> Enable options as yes (Make your app visible to public)
tha_watcha
2016-03-26T10:46:32Z
The error message is fixed in YAF 2.2.3. And i also updated the wiki with your guide to Set up the Facebook App. Thanks for that!
UserPostedImage
ChrisMaga
2017-01-17T20:52:38Z
I am using yafnet forums v2.0.0.
When I followed the same instructions above, I got a similar error:
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 

It seems these two parameters are deprecated from Facebook API. You either need to upgrade forums to v.2.23 or edit source code to make it work.

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