Skip to content

Instantly share code, notes, and snippets.

Created January 9, 2018 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b987d226d9843907ddbba07e9b9e9afb to your computer and use it in GitHub Desktop.
Save anonymous/b987d226d9843907ddbba07e9b9e9afb to your computer and use it in GitHub Desktop.
Apps Facebook Calendar Canvas Auth
********************
Apps Facebook Calendar Canvas Auth >>>
********************
http://shurll.com/bzg36
(Copy & Paste link)
********************
A github issue it's more traceable and admits some integration into the plugin development phases. Learn more, including about available controls: Cookies Policy.FacebookSign UpNoticeYou must confirm your password to edit your account settings.Log into FacebookYou must confirm your password to edit your account settings.Log InForgot account? Sign up for FacebookEnglish (US)NederlandsFryskPolskiTrkeDeutschFranais (France)EspaolPortugus (Brasil)ItalianoSign UpLog InMessengerFacebook LiteMobileFind FriendsPeoplePagesPlacesGamesLocationsCelebritiesMarketplaceGroupsRecipesSportsLookMomentsInstagramLocalAboutCreate AdCreate PageDevelopersCareersPrivacyCookiesAd ChoicesTermsHelpSettingsActivity Log Facebook 2018. The Json reference is also available from nuGet Install-Package Newtonsoft.Json explains the ["signedrequest"] element in more detail, but put simply, when Facebook posts back (in my case after a user registration request), you can get the data from the post, but the string is in TWO PARTS, separated by a '.' - As such, trying to decode ["signedrequest"] will fail as '.' isn't a Base64 char. Sergio RabellinoFri, 5 May 2017, 9:42 PMAs i wrote in my previous post here, the requests/bugs/suggestions should be posted opening an issue on the github plugin project. David MudrkThu, 6 Apr 2017, 10:17 PMI am happy to announce that this plugin has been adopted! The new maintainer is Sergio Rabellino, the head of the ICT services of the University of Turin. You may receive SMS Notifications from Facebook and can opt out at any time.Create AccountSecurity CheckThis field is required.Can't read the words below? Try different words or an audio captcha.Please enter the words or numbers you hear.Try different words or back to text.Loading.Enter the text you see above.Why am I seeing this?Security CheckThis is a standard security test that we use to prevent spammers from creating fake accounts and spamming users. The first part is the signature to allow you to validate that the post came from Facebook (only us and them know the sig to decode) and the second is the payload. Sergio accepted to maintain the plugin until the Oauth2 core plugin stabilises. Balj WeberMon, 10 Apr 2017, 10:26 PMWhere can if ind documentation about adding my own vendor. Unfortunately, neither of them works when I upgrade this plugin to Release 2.3 (Build: 2016061204). Jump toSections of this pageAccessibility HelpPress alt + / to open this menuRemoveTo help personalize content, tailor and measure ads, and provide a safer experience, we use cookies. Therefore, I deleted this folder on host and in database. and then the Controller code responds to the registration request [HttpPost] public ActionResult Register(object postData ) { string requestData = Request.Form["signedrequest"]; string[] splitPayload = requestData.Split('.'); string sig = splitPayload[0]; string payload = splitPayload[1]; var decodedObj = DecodePayload(payload); // get the items from the decodedObject string userFacebookID = decodedObj["userid"]; // now do what you want with their FacebookID return View(); } hope this helps someone, and sorry if this should have been edit/feedback or whatever. The SDK handles all that for you. .. .. Any suggestions are apprecited. It's back! Take the 2018 Developer Survey today . I know "The plugin stopped working the 27th March 2017 as Facebook closed the API 2.2. We transfered the official repository from my Github account to his Github account there: So if you are using Github, there will be no impact for you as Github should automatically redirect the previous git repository url to the new one. Jrme MouneyracThu, 22 Jun 2017, 1:07 PMPhuong: I would advice to restore the plugin files and disable the authenticatuon plugin from the admin. Sergio is a well known Moodler and he will be more than qualified to maintain the plugin. So, I got this to work with the following code (in a MVC controller), source is a Facebook registration button. Any help is very good welcomed Best Regards, Sebastian. –rboarman May 25 '12 at 0:19 add a comment up vote 9 down vote Sorry, bit of a StackOverflow noob, but for anyone trying to use JohnK's method to decode, it works brilliantly, just a couple of implementation tips for anyone like me and the others with the base64 encoding issue. to have contracted me to update the code to support a Google API change, and also all the contributors. In short, I'd like to know how can I uninstall this plugin? . Sergio RabellinoTue, 11 Apr 2017, 6:56 AMYou can get all the required information here: Angelo AgujoTue, 18 Apr 2017, 9:05 AMHi, We have recently upgraded to Moodle 3.2.2 and our Google authentication button (Oauth 2) on our Moodle login page has disappeared. Anyway you should only change the script.js file, modifying the jquery code used to identify in the login page the div element to which you want append the button's code. So you should have time to move over to the Oauth2 core plugin introduced in Moodle 3.3 - we expect you to have moved to it by mid 2019. By clicking or navigating the site, you agree to allow our collection of information on and off Facebook through cookies. Jump toSections of this pageAccessibility HelpPress alt + / to open this menuRemoveTo help personalize content, tailor and measure ads, and provide a safer experience, we use cookies. Thanks, Angelo. –Nathan Totten Sep 19 '10 at 22:09 add a comment 6 Answers 6 active oldest votes up vote 24 down vote The following should help you out. . 5a02188284
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment