{"action":"created","issue":{"url":"https://api.github.com/repos/gravityrail/fitpress/issues/4","repository_url":"https://api.github.com/repos/gravityrail/fitpress","labels_url":"https://api.github.com/repos/gravityrail/fitpress/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/gravityrail/fitpress/issues/4/comments","events_url":"https://api.github.com/repos/gravityrail/fitpress/issues/4/events","html_url":"https://github.com/gravityrail/fitpress/issues/4","id":152887052,"number":4,"title":"Guests cannot see stats","user":{"login":"kayleighthorpe","id":5489165,"avatar_url":"https://avatars.githubusercontent.com/u/5489165?v=3","gravatar_id":"","url":"https://api.github.com/users/kayleighthorpe","html_url":"https://github.com/kayleighthorpe","followers_url":"https://api.github.com/users/kayleighthorpe/followers","following_url":"https://api.github.com/users/kayleighthorpe/following{/other_user}","gists_url":"https://api.github.com/users/kayleighthorpe/gists{/gist_id}","starred_url":"https://api.github.com/users/kayleighthorpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayleighthorpe/subscriptions","organizations_url":"https://api.github.com/users/kayleighthorpe/orgs","repos_url":"https://api.github.com/users/kayleighthorpe/repos","events_url":"https://api.github.com/users/kayleighthorpe/events{/privacy}","received_events_url":"https://api.github.com/users/kayleighthorpe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-03T22:15:53Z","updated_at":"2016-10-17T18:03:14Z","closed_at":null,"body":"Plugin working for me, however, I can only see my steps when logged in. How can I make them public? The steps are set to public in my Fitbit settings."},"comment":{"url":"https://api.github.com/repos/gravityrail/fitpress/issues/comments/254285009","html_url":"https://github.com/gravityrail/fitpress/issues/4#issuecomment-254285009","issue_url":"https://api.github.com/repos/gravityrail/fitpress/issues/4","id":254285009,"user":{"login":"mdrovdahl","id":474467,"avatar_url":"https://avatars.githubusercontent.com/u/474467?v=3","gravatar_id":"","url":"https://api.github.com/users/mdrovdahl","html_url":"https://github.com/mdrovdahl","followers_url":"https://api.github.com/users/mdrovdahl/followers","following_url":"https://api.github.com/users/mdrovdahl/following{/other_user}","gists_url":"https://api.github.com/users/mdrovdahl/gists{/gist_id}","starred_url":"https://api.github.com/users/mdrovdahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdrovdahl/subscriptions","organizations_url":"https://api.github.com/users/mdrovdahl/orgs","repos_url":"https://api.github.com/users/mdrovdahl/repos","events_url":"https://api.github.com/users/mdrovdahl/events{/privacy}","received_events_url":"https://api.github.com/users/mdrovdahl/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T18:03:14Z","updated_at":"2016-10-17T18:03:14Z","body":"That's because of these statements `$user_id = get_current_user_id();` which are passing the currently signed-in WordPress user to Fitbit. When there is no signed-in WordPress user, then the Fitbit service doesn't know which Fitbit user to pull data for.\r\n\r\nOne solution would be to create an additional setting eg `register_setting('fitpress_settings', 'fitpress_api_user');\r\n` to store the WordPress user for whom we want to display Fitbit data and then something like `user_id = get_option('fitpress_api_use')`\r\n\r\nJust some quick thoughts, ymmv =)"}}
{"actor":{"display_login":"mdrovdahl"}}