Created
April 15, 2011 16:03
-
-
Save nov/921947 to your computer and use it in GitHub Desktop.
Destroy Facebook Test User
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app = FbGraph::Application.new(config[:client_id], :secret => config[:client_secret]) | |
user = app.test_user!(:installed => true, :permissions => :read_stream) | |
user.destroy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i have two old users
example:
<FbGraph::TestUser:0x000001076e5bb0 @Identifier="499102699", @endpoint="https://graph.facebook.com/499102699", @access_token=nil,..
don't know why i can't destroy 'old' users
but when I create new ones with app.test_user! it is possible to destroy them
example new user:
<FbGraph::TestUser:0x00000106055120 @Identifier="100002494629341", @endpoint="https://graph.facebook.com/100002494629341", @access_token="213439622021302|7d200a351e228508e997bd80.0-100002494629341|-8j6vBIzmb-naxjqzvQxeko-LBo", ..
so i did the following to make sure to destroy all 'new' users