Fixing bugs in get_posts.
Changing scope of access token.