{"action":"created","issue":{"url":"https://api.github.com/repos/selesnow/rfacebookstat/issues/7","repository_url":"https://api.github.com/repos/selesnow/rfacebookstat","labels_url":"https://api.github.com/repos/selesnow/rfacebookstat/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/selesnow/rfacebookstat/issues/7/comments","events_url":"https://api.github.com/repos/selesnow/rfacebookstat/issues/7/events","html_url":"https://github.com/selesnow/rfacebookstat/issues/7","id":320839124,"number":7,"title":"Что-то не так с токеном","user":{"login":"tytanya","id":8759392,"avatar_url":"https://avatars2.githubusercontent.com/u/8759392?v=4","gravatar_id":"","url":"https://api.github.com/users/tytanya","html_url":"https://github.com/tytanya","followers_url":"https://api.github.com/users/tytanya/followers","following_url":"https://api.github.com/users/tytanya/following{/other_user}","gists_url":"https://api.github.com/users/tytanya/gists{/gist_id}","starred_url":"https://api.github.com/users/tytanya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tytanya/subscriptions","organizations_url":"https://api.github.com/users/tytanya/orgs","repos_url":"https://api.github.com/users/tytanya/repos","events_url":"https://api.github.com/users/tytanya/events{/privacy}","received_events_url":"https://api.github.com/users/tytanya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-05-07T15:02:15Z","updated_at":"2018-05-14T05:45:35Z","closed_at":null,"author_association":"NONE","body":"Запускаю запрос на получение токена\r\ntoken <- fbGetToken(app_id = 257****9327)\r\nПолучаю ошибку-предупреждение: Invalid Scopes: business_management, manage_pages. 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.facebook.com/docs/facebook-login/permissions\r\n\r\nНажимаю окей, получаю токен: http://take.ms/uYoWv\r\nПосле чего пытаюсь получить долговременный токен \r\nlongtime_token <- fbGetLongTimeToken(\r\n+     client_id = здесь пишу ид приложения,\r\n+     client_secret = \"пишу секрет приложения\",\r\n+     fb_exchange_token = token)\r\n\r\nВыдает ошибку \r\n{\r\n   \"error\": {\r\n      \"message\": \"Invalid OAuth access token.\",\r\n      \"type\": \"OAuthException\",\r\n      \"code\": 190,\r\n      \"fbtrace_id\": \"FK5eNNQUjr7\"\r\n   }\r\n}\r\n\r\nИзначально временный токен совсем не выдавал, добавила в домен приложения github.io, после этого хотя бы временный токен стал отдавать"},"comment":{"url":"https://api.github.com/repos/selesnow/rfacebookstat/issues/comments/388703379","html_url":"https://github.com/selesnow/rfacebookstat/issues/7#issuecomment-388703379","issue_url":"https://api.github.com/repos/selesnow/rfacebookstat/issues/7","id":388703379,"user":{"login":"tytanya","id":8759392,"avatar_url":"https://avatars2.githubusercontent.com/u/8759392?v=4","gravatar_id":"","url":"https://api.github.com/users/tytanya","html_url":"https://github.com/tytanya","followers_url":"https://api.github.com/users/tytanya/followers","following_url":"https://api.github.com/users/tytanya/following{/other_user}","gists_url":"https://api.github.com/users/tytanya/gists{/gist_id}","starred_url":"https://api.github.com/users/tytanya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tytanya/subscriptions","organizations_url":"https://api.github.com/users/tytanya/orgs","repos_url":"https://api.github.com/users/tytanya/repos","events_url":"https://api.github.com/users/tytanya/events{/privacy}","received_events_url":"https://api.github.com/users/tytanya/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T05:45:35Z","updated_at":"2018-05-14T05:45:35Z","author_association":"NONE","body":"Спасибо!\r\nВ этой статье https://netpeak.net/ru/blog/kak-zagruzit-statistiku-reklamnykh-kampanii-iz-api-facebook-s-pomoshch-yu-yazyka-r/\r\nу вас другой домен приложения, может стоит поправить?\r\nИ здесь тоже другой https://selesnow.github.io/rfacebookstat/"}}
{"actor":{"display_login":"tytanya"}}