Skip to content
This repository was archived by the owner on Mar 26, 2020. It is now read-only.

search command - #2

Open
edsu wants to merge 1 commit into
justinlittman:masterfrom
edsu:search
Open

search command#2
edsu wants to merge 1 commit into
justinlittman:masterfrom
edsu:search

Conversation

@edsu

@edsu edsu commented Mar 14, 2017

Copy link
Copy Markdown
Contributor

This commit adds a search command where you can search for a variety of
entities:

fbarc search page blacklivesmatter
fbarc search place minneapolis

Searching for user, event, group require your app be out of sandbox mode
(approved by FB).

Missing from this commit are unittests (I couldn't quite figure out what was
going on with the mocks). Also it seemed like paging of some kind would be
useful, and that there was support for that that could be leveraged?

This commit adds a search command where you can search for a variety of
entities:

    fbarc search page blacklivesmatter
    fbarc search place minneapolis

Searching for user, event, group require your app be out of sandbox mode
(approved by FB).

Missing from this commit are unittests (I couldn't quite figure out what was
going on with the mocks). Also it seemed like paging of some kind would be
useful, and that there was support for that that could be leveraged?
@justinlittman

Copy link
Copy Markdown
Owner

Thanks @edsu. Just wanted to let you know that I'm (slowly) working on this. I'm looking into user authentication to see if it might enable more search types.

@edsu

edsu commented Mar 22, 2017

Copy link
Copy Markdown
Contributor Author

@justinlittman no worries. So are you attempting to get your app out of sandbox mode?

@justinlittman

justinlittman commented Mar 22, 2017 via email

Copy link
Copy Markdown
Owner

@edsu

edsu commented Mar 22, 2017

Copy link
Copy Markdown
Contributor Author

When I try to search for an event I get this:

% python fbarc.py search event toys
{"error": {"message": "(#200) Must have a valid access_token to access this endpoint", "code": 200, "type": "OAuthException", "fbtrace_id": "HsXItBefHXT"}}

Same thing for group, user and placetopic. I seem to have lost the documentation that indicated that the app needed to be out of sandbox mode. I think what the error might be saying is that a user access token is needed as opposed to just app keys. I guess it would take more fiddling around to find out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants