Trying to create "test facebook page" after login using "test user" gives error:
"This content is no longer available"
screenshot:
I tried to give my test user "admin role" in my existing page but that does not seem to work, thus trying to create "test page" manually using "test user" gives me this error.
I'm not sure this is exactly your issue, but there are currently two open bugs about creating Pages with Test Users:
https://developers.facebook.com/support/bugs/983667641797373/
https://developers.facebook.com/support/bugs/2156602097896238/
Meanwhile, you might be able to use the Graph API to create the page, as suggested by a comment. You can see the request in the Graph Explorer:
https://developers.facebook.com/tools/explorer?method=POST&path=me%2Faccounts&version=v3.0&name=Bob%20Test%20Page%201&category=756092301147942&about=Bob%20test&picture=https%3A%2F%2Fbowwowinsurance.com.au%2Fwp-content%2Fuploads%2F2014%2F12%2Ffrench-bulldog-frenchie-700x700.jpg&cover_photo=%7B%22url%22%3A%22https%3A%2F%2Fbowwowinsurance.com.au%2Fwp-content%2Fuploads%2F2014%2F12%2Ffrench-bulldog-frenchie-700x700.jpg%22%7D
I just created a page with a test account and it worked.
You have to connect to the account, and click here from the test user profile :
or you can follow this link : https://www.facebook.com/pages/creation/
UPDATE (AUGUST 2018)
It seems to work only with test users created from this url : www.facebook.com/whitehat/accounts/. These users are linked to a real profile, not to a Facebook App.
Related
in facebook developer app, I am trying to add privacy-policy & terms pages links of website, but getting validation error "could not follow redirect of this link"
I have created project app in my facebook developer account, now trying to add privacy-policy & terms pages links of website. But its giving validation error like "could not follow redirect to link"
My privacy-policy link like:
xyz.com/privacy-policy
above link is with "https://"
above link is exist in my project, but facebook giving issue
please suggest me the solution for this issue
I am trying to do SSO for liferay 6.1 via facebook. For that I have created App id and secret and have given them inside portal settings--->authentication--->facebook.
Now, if I am trying to login using facebook link it gives the following error inside pop-up -
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
}
I guess I need to provide my site url/domain in facebook somewhere itself. Can anyone help me out for the same?
Thanks in advance.
I had the same problem.
Solution
Go to your Facebook App
Navigate to Settings
In Basic tab, select +Add Platform
Select "Website"
Give your domain in Site URL (eg: localhost:8080)
Save
Enjoy !
Tip: If you want multiple people to login to your site, enable : "Do you want to make this app and all its live features available to the general public?" in Status&Review
Using the Perl module, Facebook::Graph, I have created some basic perl code that can post to my own wall. I can share a photo on my own wall. I can also post a simple wall message to one of the pages for which I am an admin. However, when I try to post a photo to the page, it posts as me, not as the page.
Here is the sample code that posts as me, to the Facebook page. I need it to post as the Page, not as me.
# previously, I obtained my Page's accesstoken, and other credentials
# including the Facebook Page ID
my $fb = Facebook::Graph->new(
app_id => $facebook_application_id,
secret => $facebook_application_secret
);
$fb->access_token($facebook_accesstoken);
my $rstring = $fb
->add_photo
->to($facebookPageID)
->set_message('Look at this really cool photo!')
->set_source('./raw_image_example.jpg')
->publish
->as_string;
print "$rstring\n\n";
I am trying to figure out how to create a post to the wall of a Facebook page, as if it is being posted BY the page, not by me.
I am trying to do that with the CPAN module, Facebook::Graph, located here: http://metacpan.org/pod/Facebook::Graph
I cannot, for the life of me, figure this out. Any help would be most welcomed!
I went through the same trouble, so let me share what I did step by step so it might benefit other people:
After going to developers.facebook.com to create an app, you
go to https://developers.facebook.com/tools/explorer/
There, on the top menu named "Graph API Explorer" you select the app
you just created
Then, on the righthand side, there is another menu named "Get
Token", in which you select "Get Access Token", then a pop-up window
will appear, you to the extended
permissions tab, and check "publish_pages" and "manage_pages"
options and click on "Get Access Token". It will pop-up a window
asking you to confirm you want to grant access to this app. It will
produce a long token.
Then, you select the menu Get Token again, and you will find in this
menu the list of the pages you manage, select the one you want and
it will show its related access token.
Now the token received is only temporary like 2 hours or something.
You want something that last 60 days and renewable, so from your
server you do a curl request:
https://graph.facebook.com/oauth/access_token?grant_type=fb_exchange_token&client_id=$facebook_application_id&client_secret=$facebook_application_secret&fb_exchange_token=$facebook_accesstoken
Facebook will output something like this:
access_token=ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ&expires=5184971
Then, you can post as your page using your fine code.
I hope this helps.
Enable manage_pages permission to get a code.
Submit code to get user access token for your account (you are manager or content_creactor) for query everythings.
Queried your account by calling /me/accounts, you will get page access token. one account can manage many pages. So use JSON to choose which one do you want.
Use those page access token to post msg or photo as normal. https://graph.facebook.com/me/feed
(note that it is not /feed) since page access token contain the ID already.
I'm following the Facebook Android Scrumptious tutorial. In the last step, if I post a meal, it's ok, the confirm action id is shown. However, when I posted a meal with a friend in it, I got this error:
You haven't enabled tagging for this action type (10151609805121984) yet. Please update your Open Graph settings in the App Dashboard.
The error seems to be very explicit, must be the settings somewhere in the dashboard, but I can't find it. I tried going to "Permissions" section and add "publish_actions" to the field "Users and Friends permission", still didn't work. Am I missing anything? Thanks.
In the App Dashboard > Action Type, you have to check :
Tags: Allow users of my app to tag other users for this action.
Screenshot:
One more thing, the permissions should be set with the login code, not in the Configuration Permissions settings (which has no effect on the app's actual permissions)
I followed the directions on facebook to add my app (which is a tab) to my fanpage:
"Facebook Page administrators can add your app directly to their Page by navigating to the following URL: https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL, where YOUR_APP_ID and YOUR_URL can be found in your app settings."
But I got this message:
"This application does not support integration with your profile."
The names of the app and page are not exactly the same. But the name of the app has a "-" in the name - a fan page name cannot have a "-" in the name, so I cannot rename it to the same name.
What can I do? Who can help me?
If you want to add an app to your fanpage you need to fill in the "Page Tab" section With your site url
It sounds like your app isn't configured to actually provide a page tab - check the 'Page Tab' section of your app's settings to make sure you've configured it correctly.
You must choose "PAGE TAB" in the dialog ! ! !
see the TUTORIAL here: https://stackoverflow.com/a/35287477/2377343
Facebook has recently made changes to its developer interface and specially the App Dashboard. Hence it might be a bit tricky to find out how to configure the Page Tab. Refer the following tutorial - https://developers.facebook.com/docs/appsonfacebook/pagetabs/
Go to your App Settings, then Basic and add a platform as page tab. Provide a URL with https, even if you don't have it, just to test. Then run this page and you can successfully add your app to the page tab.