This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Defining a new class | |
| class Student | |
| end | |
| # Creating an instance of a class | |
| > student = Student.new | |
| > student.class | |
| => Student |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1) The 'perms' parameter has been renamed to 'scope' for FB.login --> FB.login( callback, {scope:'manage_pages'}) | |
| 2) The function FB.getSession has been renamed to FB.getAuthResponse | |
| 3) The structure of the response for FB.login, FB.getLoginStatus and FB.getAuthResponse has changed. response.session is now response.authResponse, and authResponse only contains and accessToken, userId, signedRequest and expiresIn. Please note the name change from access_token to accessToken and user_id to userId. | |
| 4) No other information is passed including which permissions have been granted. Another graph call must be made with the access token to get any more information. For example, you may need to make another call to /me to get current permissions, and verify that the permissions include the one you just asked for. |