how to create facebook auth dialog preview user - facebook

I'm using open graph to publish actions on users' feed. My tests are ok for admin users and now I want to test it on "Auth dialog preview user"'s timeline before submiting any approuval. But I can't see this user anywhere. So I tried to create him by using:
https://graph.facebook.com/APP_ID/accounts/test-users?installed=true&name=Auth+Dialog+Preview+User&locale=en_US&permissions=APP_PERMISSIONS&method=post&access_token=APP_ACCESS_TOKEN. It was created successfully but when I try to publish action on it's timeline I got the error message: "Application with ID has not been granted the capability to use the property message". So I understand that the user I created is not recognized as a test user. Is there any way to have a valid one?

Have you tried to do it by app dashboard? https://developers.facebook.com/apps/<APP_ID>/roles at the bottom there is section like "Test users" and link "Add".

If the actions are created but the user is not there, click "Get Code" as described from this section
The first thing you should do is create an Open Graph Action, by
clicking the Open Graph link as shown in the above image
https://developers.facebook.com/apps/YOURAPPID/opengraph Set your
namespace because we need this to define your Open Graph meta data as
stated in the protocol – http://ogp.me
Next, go back to the Open Graph link and create an action
Plan a Trip
Walk the dog
Drink Computers
Honestly, the actual action isn’t important right now. All I am trying
to do is lead you to the Auth Preview User, it will be up to you to
make the next steps.
Once that’s set, go to the Open Graph Dashboard.
Select “Get Code” this should return a cURL command for you to execute
curl -F 'access_token=xxx' \
-F 'computer=http://samples.ogp.me/465737726804711' \
'https://graph.facebook.com/me/#_#:drink'
You don’t need to execute the cURL command, just go to your roles,
that Auth Dialog Preview User should be looking at you with his white
avatar self.
Help! I’ve deleted the Auth Dialog Preview User and I cannot get him back :( Thanks in advance. This is urgent
Well adding him back via Roles isn’t going to work, so what are you
going to do?
Click Get Code again on your Open Graph action, this should bring the
Auth Dialog Preview User back again.
If that doesn't work execute the cURL command as shown above and see how that works.
Source: http://philippeharewood.com/facebook/summoning-the-auth-dialog-preview-user/

now I want to test it on "Auth dialog preview user"'s timeline before submiting any approuval. But I can't see this user anywhere.
If you have Open Graph actions for your app set up already, you should find the Auth dialog preview user on the roles tab in your app settings.
It’s created automatically, you do not do that yourself.

You will get more details about
1.Authentication
2.Auth dialog
from https://developers.facebook.com/docs/authentication/
https://developers.facebook.com/docs/opengraph/authentication/

Finally I get test user "Auth Dialog Preview User" created. I didn't have this user on my test users on the dashbord, so I submitted an approuval with this status. Of course, my request was rejected but fortunately, the user was created at the same time. I just do my test on its timeline and resubmit an approuval. Now every thing is ok. Thank you for all

Related

Why get "Permission Needed" everytime for my word plugin?

I am builing Word Plugin, I follow the tutorial to set up SSO by adding
<WebApplicationInfo>
<Id>{application GUID here}</Id>
<Resource>api://localhost:44355/{application_GUID here}</Resource>
<Scopes>
<Scope>openid</Scope>
<Scope>offline_access</Scope>
<Scope>profile</Scope>
<Scope>files.read.all</Scope>
</Scopes>
</WebApplicationInfo>
into my manifest file, however, everytime I refresh the page, when I click my plugin icon, it pops "Permission Needed" dialog box to ask above permissions, even I already gave the consent before, I thought it will remember my consent for the app. It shouldn't bother me again and again, this behavior happens before "Office.initialize" event, therefore not my code cause that.
My question, any way to let the "permission needed" only popup at first time, and after I gave the consent no matter how many times I refresh the page, when I click my plugin icon, it will not popup again?
Thanks
* More info appended *
I use my "Work or School" account login to office365, the URL is https://word.office.com
choose any word file, and click my plugin.
Then give the consent for app.
Then, If I reload the current Word page (by pressing Ctrl+F5) and click my plugin icon again, it repeat the above steps which I already give the consent.
That not make sense, or it only happens when I am developing, then it will be ok when published to Microsoft AppSource?

Error: (#3501) User is already associated to the object type, article, on a unique action type Like. Original Action ID: 10202808015141547

copy pasted the exact code from https://developers.facebook.com/docs/opengraph/getting-started/ , changed the appid. Yesterday it used to work..now..not so much.any idea?
Check the settings for your Open Graph action.
Go to the Open Graph Dashboard for your app on Facebook Developers.
Click on the Read action.
Click the Advanced link.
Make sure that Allow Multiple is selected for the setting called Unique action.

Facebook Graph Api - Adding new Tab to Page not working

In the Facebook graph api explorer I am trying to add a new Tab to a fanpage according to the documentation.
So I make a POST to /pageId/tabs with the field app_id and my app's ID as value using the page access token I got when querying userId/accounts. The access token includes the manage_pages permission.
I get the result true which is supposed to mean, the create was successful. But if I run a GET on pageId/tabs the newly created tab is nowhere to be found.
Am I missing something? Shouldn't it have created the Tab if it says "true"? Has anyone done this and can tell me how it worked for you?
Thanks!
I created a specific bug report
And this one seems to be related
Wow, so this is a perfect example of how important a meaningful error message or in this case ANY error message at all is.. Dear Facebook API developers, please get your act together, this is just one of many examples of inconsistency!
What the error message should have told me is "This app is not designed to be added as a tab" (As btw is the error message when trying to add it with
http://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL
Because when I set the app settings to "tab" instead of "app on facebook", everything works fine! Sigh! Admittedly I could have done this right initially but who is infallible?!
The Graph API call simply should not return true if the request fails!

Can't check user_actions permission for the access_token in facebook API explorer

in the permission selector popup i can't find the user_actions permission checkbox. Is that quite normal ?
I want test this kind of request /me/music.listens or /me/music.playlists for a future app.
For now, the return give me an empty array.
Thank you
Look at this URL: http://developers.facebook.com/docs/opengraph/permissions/
It shows you how to request permissions for a specific action or a specific app along with some sample code. Once you get the token you can check it's permissions using the debug tool here: http://developers.facebook.com/tools/debug
You can use the DOM inspector to change the name attribute of one of the permission checkboxes that you don't need to "user_actions.music".

Facebook Connect settings for popup dialog

I'm in the process of implementing Facebook Connect for my site, everything seems to be working fine so far except that the look of my popup dialog upon clicking on "Login with Facebook" is totally different from what I see on other sites like say Posterous.
I'm only getting a popup with the msg "Do you want to log in to with your Facebook account?" followed by the 2 login fields whereas Posterous has a more detailed dialog box with 2 images and more descriptive text.
Am i missing out on some configuration settings here or?
Thanks
The text you're seeing is due to the new Facebook data permissions and permissions dialog changes that will go into effect on June 1st. The new settings also has different text for the dialog when you're logged into Facebook but not yet connected to the site:
[SITE_NAME] is requesting permission
to do the following:
Access my public information
Includes name, profile picture, list
of friends and all other public parts
of my profile
You can switch your app to the old / current Connect dialogs to see the difference by going to the Migrations tab when editing your application and setting "New Data Permissions" to Disabled. But on June 1st, you'll be automatically switched to the new version if you haven't already enabled it.
The new dialogs' text is definitely scarier to the user - I'm a little surprised Facebook is changing the text to this since they always say they want to make connecting as appealing as possible for the user. But we don't have a choice.