{"action":"created","issue":{"url":"https://api.github.com/repos/chen-ye/hubot-fb/issues/4","repository_url":"https://api.github.com/repos/chen-ye/hubot-fb","labels_url":"https://api.github.com/repos/chen-ye/hubot-fb/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/chen-ye/hubot-fb/issues/4/comments","events_url":"https://api.github.com/repos/chen-ye/hubot-fb/issues/4/events","html_url":"https://github.com/chen-ye/hubot-fb/pull/4","id":152211636,"number":4,"title":"add auto webhook and subscription setup","user":{"login":"kengz","id":8209263,"avatar_url":"https://avatars.githubusercontent.com/u/8209263?v=3","gravatar_id":"","url":"https://api.github.com/users/kengz","html_url":"https://github.com/kengz","followers_url":"https://api.github.com/users/kengz/followers","following_url":"https://api.github.com/users/kengz/following{/other_user}","gists_url":"https://api.github.com/users/kengz/gists{/gist_id}","starred_url":"https://api.github.com/users/kengz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kengz/subscriptions","organizations_url":"https://api.github.com/users/kengz/orgs","repos_url":"https://api.github.com/users/kengz/repos","events_url":"https://api.github.com/users/kengz/events{/privacy}","received_events_url":"https://api.github.com/users/kengz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chen-ye/hubot-fb/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"chen-ye","id":1904031,"avatar_url":"https://avatars.githubusercontent.com/u/1904031?v=3","gravatar_id":"","url":"https://api.github.com/users/chen-ye","html_url":"https://github.com/chen-ye","followers_url":"https://api.github.com/users/chen-ye/followers","following_url":"https://api.github.com/users/chen-ye/following{/other_user}","gists_url":"https://api.github.com/users/chen-ye/gists{/gist_id}","starred_url":"https://api.github.com/users/chen-ye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen-ye/subscriptions","organizations_url":"https://api.github.com/users/chen-ye/orgs","repos_url":"https://api.github.com/users/chen-ye/repos","events_url":"https://api.github.com/users/chen-ye/events{/privacy}","received_events_url":"https://api.github.com/users/chen-ye/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-05-01T15:23:51Z","updated_at":"2016-05-02T01:57:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chen-ye/hubot-fb/pulls/4","html_url":"https://github.com/chen-ye/hubot-fb/pull/4","diff_url":"https://github.com/chen-ye/hubot-fb/pull/4.diff","patch_url":"https://github.com/chen-ye/hubot-fb/pull/4.patch"},"body":"This solves #3 \r\n\r\n1. Change the `FB_ROUTE_URL` default to `/fb`, good practice to name it by adapter to prevent name clash.\r\n2. auto webhook setup, and app subscription for page; update README accordingly. Effectively from now, one only needs to create the Page and App, then get the config varsl i.e. just Step 1 in Facebook's instruction. All the rest, from getting AppAccessToken, setup webhook, subscribe App to Page, are all done automatically. Test them out!"},"comment":{"url":"https://api.github.com/repos/chen-ye/hubot-fb/issues/comments/216092203","html_url":"https://github.com/chen-ye/hubot-fb/pull/4#issuecomment-216092203","issue_url":"https://api.github.com/repos/chen-ye/hubot-fb/issues/4","id":216092203,"user":{"login":"chen-ye","id":1904031,"avatar_url":"https://avatars.githubusercontent.com/u/1904031?v=3","gravatar_id":"","url":"https://api.github.com/users/chen-ye","html_url":"https://github.com/chen-ye","followers_url":"https://api.github.com/users/chen-ye/followers","following_url":"https://api.github.com/users/chen-ye/following{/other_user}","gists_url":"https://api.github.com/users/chen-ye/gists{/gist_id}","starred_url":"https://api.github.com/users/chen-ye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen-ye/subscriptions","organizations_url":"https://api.github.com/users/chen-ye/orgs","repos_url":"https://api.github.com/users/chen-ye/repos","events_url":"https://api.github.com/users/chen-ye/events{/privacy}","received_events_url":"https://api.github.com/users/chen-ye/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T01:57:41Z","updated_at":"2016-05-02T01:57:41Z","body":"prepping for integration at https://github.com/chen-ye/hubot-fb/commit/539b555d281fc1f73e733853b02465c7ab19dcc9"}}