w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Facebook 'like' button doesn't show when linking to my Facebook page - it works for every other page
Ok. I feel like an idiot. After about a month of thinking, I was having a shower this morning and I finally figured out the problem. This Facebook page is not available to people in Thailand. I live in Thailand.

Categories : Facebook

Facebook oauth for accounts with managed page not switching (using Facebook as your page)
I'm having the same issue :( I haven't come across a solution.. except maybe to create a landing page on facebook canvas. This will prompt them to switch from "Page" to "Personal" before going through your application setup.

Categories : Facebook

Facebook Graph API & django-facebook - posting links and photos to page feeds
Facebook Graph API PHP SDK posting on page as page Found it. There is a different access token for impersonating the page to post as the page. You get that from /me/accounts and use that token to post as the page. Updated working code: @facebook_required_lazy(scope=['manage_pages', 'publish_stream', 'photo_upload']) def index(request): if request.method == 'POST': form = CPYPosterForm(request.POST) if form.is_valid(): fb = require_persistent_graph(request) msg = form.cleaned_data['msg'] pages = form.cleaned_data['pages'] me_accounts = fb.get('/me/accounts') access_token = None resp = dict() for p in pages: for d in me_accounts['data']: if d['id']

Categories : Django

Facebook like buttonto like a particular wall post (photo, video, link, etc) of my facebook page?
The middle response of Facebook Video Like Button Help? seems to indicate Facebook will automatically embed a like button into the video you upload to them (rather than linking to an external video). Also this article seems to confirm it: http://yourinternetbusinesslink.com/facebook-like-button-video/

Categories : Facebook

callback issue in Facebook while user clicks anywhere while Facebook login page is loading
Goto onCreate() method of WebDialog.java in FacebookSDK library, you will find following statement: spinner = new ProgressDialog(getContext()); add the below statement after it spinner.setCanceledOnTouchOutside(false); you are ready to go!

Categories : Android

Facebook Graph API, Development of Facebook page post targeting( make visible only specified country/city )
Try feed_targeting instead of targeting! All parameters which you can target like languages,cities,counties are facebook specific. You can resolve them via autocomplete data : "{'locales':[1001],'countries':[GE],'cities':[825886]}" Nice feature for automatic posting with targeting but so bad documented in the Facebook documentation...

Categories : PHP

Is there a drupal module for importing Facebook Events from a Facebook Page?
As per my knowledge, there is no such module available in Drupal as of now. But you can write a custom module for the same using following facebook graph api: https://graph.facebook.com/PAGE_ID/events You need a valid access token to return the events list for a page. Visit https://developers.facebook.com/tools/explorer to test it.

Categories : Facebook

Facebook page link open in facebook app instead of safari browser
make it this way if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString: @"fb://profile/<page id>"]]){ [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"fb://profile/<page id>"]]; }else{ [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://www.facebook.com/<page name>"]]; }

Categories : Iphone

Can i get facebook checkins of my facebook page with realtime updates api?
There seems to be a documentation bug in the FB docs. Instead of enabling 'checkins' for the subscription, you must enable 'feed'. Then user checkins will appear at your callback url as changed_fields=feed Then you can read the user's feed and match the timestamp in the RTU and/or look for status updates with a location/place.

Categories : Facebook

Post dialog on Facebook wall and Facebook page
Yes. After your above post is completed, you can simply make another call to publish on the fan page . Just like: FB.api("/pageid/feed", params); Just like this: function callback(response) { var obj = <YOUR_PARAMETERS>; if (response && response.post_id) { alert(response.post_id); FB.api("/<YOU_PAGE_ID>/feed", 'post', obj, function(response) { if (!response || response.error) { alert('Error occured'); } else { alert('Post ID: ' + response.id); } }); } } Permissions required: manage_pages, publish_stream

Categories : PHP

Post a link to wall of Facebook Page using Facebook sdk 3.1
This guide shows you how to get started developing with the Facebook SDK for Android. https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/ Complete samples HelloFacebookSample: an all-round sample that demonstrates profile access, status updates and photo uploading Scrumptious: demonstrates the use of login, requests, pickers, picture uploads, and Open Graph publishing

Categories : Android

Obtaining Facebook Page Access Token in Facebook iOS SDK 3.5.x
Well, this is SDK 4.x, but here's what I've gotten to get it to work __block NSString *pageToken; FBSDKGraphRequest *newRequest = [[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:@"/%@/accounts", [FBSDKAccessToken currentAccessToken].userID] parameters:nil HTTPMethod:@"GET"]; [newRequest startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { if (error) { NSLog([error localizedDescription]); }else{ //here you made need to do some debugging. not sure how it works with multiple pages pageToken = [[[result objectForKey:@"data"] objectAtIndex:0] objectForKey:@"access_token"]; }]; Again, not entirely sure how it works when a user

Categories : Misc

How Do I Create Facebook Tab on My Fan Page that links to a facebook group
You can add some Javascript redirect on the tab page itself. <script language="javascript"> top.location.href = "https://www.facebook.com/groups/bettyrockyourlife/" </script> Also, sometimes it's best from a UX standpoint to tell the user what is going on. Like setting a timer of a few seconds on the JS and placing a message on the page telling the user that the page will be redirecting elsewhere.

Categories : Facebook

How to Facebook page id using Facebook sdk3.1 for Android
To retrieve the list of the pages you can query the following end point /me/accounts This end point along with manage_pages permission will give you the list of the pages the User administers and you can use the same along with the Page's access_token provided with each to post on the corresponding pages.

Categories : Android

Facebook Canvas URL redirection to 404 Page of Facebook
The Canvas URL can't be : https://apps.facebook.com/272901126185053/ It should the URL to the app where it is hosted. The link you mentioned is the canvas page.

Categories : Facebook

Invoking Facebook app on iOS to a specific Facebook page
This link fb://profile/135057709986569 would open my Facebook page on iOS if the Facebook app is installed. Just replace the number with your Facebook ID. (Find it by going to your page admin menu and looking at the url). Next you can open it via code like this: NSURL *myURL = [NSURL URLWithString:@"fb://profile/135057709986569"]; [[UIApplication sharedApplication] openURL:myURL]; See https://developer.apple.com/library/IOs/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedAppTricks/AdvancedAppTricks.html#//apple_ref/doc/uid/TP40007072-CH7-SW18 This wiki shows you a huge list of possible facebook app links: http://wiki.akosma.com/IPhone_URL_Schemes#Facebook

Categories : Iphone

Programmatically like a facebook fan page in Facebook android SDK
To like a post on facebook, I use this part of code to create the request. Request likeRequest = new Request(Session.getActiveSession(), pageid + "/likes", null, HttpMethod.POST, new Request.Callback() { @Override public void onCompleted(Response response) { } }); Where I already logged in to Facebook, so I can just call the Session.getActiveSession(). Then I execute the request with: Request.executeBatchAndWait(likeRequest); You should run this in an Asynctask, since you are not allowed to do network stuff on your main thread.

Categories : Android

Facebook API: Error "(#210) Subject must be a page" when posting a Status Update on a Page
I found the solution: In the field next to POST I only did enter the Page-ID (like 123456789012345) but you must add "/feed" to the end, like this: 123456789012345/feed The documentation does not say how to post a status message. To me it was clear, If want to post something on a page, I have to enter the pages ID, not more. And if the error-message would have said "Subject must be a FEED" everything would have been clear. But is said "must be a PAGE" but it already was a page.

Categories : Facebook

Getting a manage page access token to upload events to a facebook page
If you are extending the user access token then the page token received will not have an expiry date. So then the user will only have to login once in the entire usage of the app. Exchange the short-lived user access token for a long-lived access token using the endpoint and steps explained earlier. By using a long-lived user access token, querying the [User ID]/accounts endpoint will now provide page access tokens that do not expire for pages that a user manages. This will also apply when querying with a non-expiring user access token obtained through the deprecated offline_access permission. https://developers.facebook.com/roadmap/offline-access-removal/

Categories : Facebook

Using graph api to bulk upload to facebook company page (not a user page)
Your link doesn't appear to go anywhere useful, I'm afraid. Nonetheless, I'm guessing your problem here is that you need to use a Page access token not a user access token to publish to a page rather than a user feed. See the section on Page Access Tokens at https://developers.facebook.com/docs/reference/api/page/

Categories : PHP

Can't submit anything to facebook page from facebook app
Ok I solved the problem. Maybe it can be helpful for others. I don't know for what reason are those permissions https://developers.facebook.com/apps/[APP_ID]/permissions but the only thing I had to do was going to https://developers.facebook.com/tools/explorer/ and changing application from Graph API Explorer to my app and generating new access_token for privilages I needed. I don't know why they moved such crucial thing as permissions to the testing tool.

Categories : Javascript

Facebook SDK to manage facebook page
No, you'll need to create a Facebook App. Doing so creates an App ID which allows you to further extend your possibilities (images, timeline, etc...) The SDK will not function properly unless you are utilizing a proper (unique) Facebook App ID.

Categories : Facebook

Share multiple videos on one page onto facebook page wall
To do this, you need to get the access token from the user accounts, and not from the FB.Login. string getPagesTokensUrl = string.Format(@"https://graph.facebook.com/me/accounts?access_token={0}",accessToken); using (WebClient wc = new WebClient()) { var pagesTokens = wc.DownloadString(getPagesTokensUrl); JObject o = JObject.Parse(pagesTokens); for (int i = 0; i < o["data"].Count(); i++) { if (o["data"][i]["id"].ToString() == ConfigurationManager.AppSettings["YOUR PAGE ID"]) { return o["data"][i]["access_token"].ToString(); } } }

Categories : Facebook

How can I post links, pictures etc to my facebook page on behalf of my page using an app?
in your code you only get USER access token. However, in order to post as page, you need to get PAGE access token. See here for more details: https://developers.facebook.com/docs/authentication/pages/ In 2 words, you need to do the following: Authenticate the user and request the manage_pages permission Get the list of pages the user manages using token from (1) - https://graph.facebook.com/me/accounts?access_token=USER_ACCESS_TOKEN Parse the list and get the PAGE token - and use it to post to the feed. Basically, before your client.Post("/AllTheMed/feed", ...) you should call me/accounts (here comes pseudocode): var myAccounts = client.Get("/me/accounts"); var pageAccessToken = myAccounts.Single(x => x.pageName == MY_PAGE_NAME).access_token; var pageClient = new FacebookClie

Categories : C#

Posting to Facebook Page through API as the page (with admin rights)
Well, definitely the gem you are looking is Koala. Update: As it seems, you are having some problem setting the actual configuration of Koala gem. Let's go through every step. You need to setup a new Koala::Facebook::API. Despite of being a horrible name, this is really the connection to your profile user. To set up this you need to access the Facebook Explorer and click Get Access Token button (make sure you are logged with the account you wanna post message's to). just copy that access token. @user = Koala::Facebook::API.new(access_token) Use that access_token to set this new @user. Now whenever you mention "me" in any Graph API request on a @user, you'll be mentioning this user (@user) as the target for that request. "me" is just the facebook ID for the user itself. The final ste

Categories : Ruby On Rails

Post link to Facebook page as page admin
You need to use a Page access token if you want the post to appear 'as the page' - if you use your user access token the behaviour depends on some settings in the page management interface of Facebook and may or may not post as the page depending on those settings.

Categories : C#

Can I post in facebook user wall and facebook fan page automatically when user is not active?
If a user authorized your app once, you can get the long-lived token (expiry: 60 days), and then use this to do actions on the user's behalf at any later time (till the token is expired- you'll have to refresh the token in that case) Here's how you can exchange the normal access token with the long-lived token: Expiration and Extending Tokens And to refresh the long-lived token, you have to repeat the same procedure again, by logging-in the user to your app again.

Categories : Facebook

Auto post facebook fan page with fan page name PHP SDK 3.2.2
Just put you token here: https://graph.facebook.com/me/accounts?access_token=token Then you will find the access token for posting as a page. Hope that helps.

Categories : Facebook

Is there any way facebook page access token of by page id?
I'm guessing you don't want to be admin of your clients' pages: You could create a page so that your clients login to Facebook and grant permissions to your app. Then you can get the page access token and save it in your DB. Finally use that access token to post directly to each page as admin without being you the actual admin. Quoting Facebook documentation: To obtain a page access token you need to start by obtaining a user access token and asking for the manage_pages permission. Once you have the user access token you then get the page access token via the Graph API. To get user access token (supposing you are logged in to fbk and have granted permissions to your App): $user = $facebook->getUser(); if(!$user) { $login_url_params = array(

Categories : Facebook

Facebook: Post to Page as Page
The solution was to add the publish_stream permission too. I didn't think this was needed as publish_actions is supposed to replace that; but it started working once it was added. Facebook used to have a permission called publish_stream, publish_actions replaces it. Quote from 18th July 2013.

Categories : PHP

Post to Facebook Page using PHP SDK
I actually had to do this yesterday. $facebook->setAccessToken($access_token); $user = $facebook->getUser(); if ($user) { try { $page_id = 'page_id_goes_in_here'; $page_info = $facebook->api("/$page_id?fields=access_token"); You need to get an access token. To do this, do to the Graph Api Explorer and in the top right, select your application form the dropdown menu. Click 'Get Access Token'. A box pops up, go to the third tab and select 'manage_pages'. In the query line below this, you can enter me/accounts and it will display all the apps. Here you can get the id to go in the page id. Boom! Hopefully that makes sense and works for you

Categories : PHP

How to get photos from a facebook page
You can get the user pages using- "/me/accounts" Then for any PAGE you can query following using the page access token which you received from the above call- "/PAGE_ID/photos"

Categories : Facebook

Facebook Like Box not working for FB Page
thats not a facebook "page", its a facebook "user", users dosn't have liks, you need to convert the "user" to a "page" first. https://www.facebook.com/help/175644189234902/

Categories : HTML

Do i need the Facebook PHP SDK for Page Tab Apps?
If the user have not signed in to your app you will not get the user name or user id from the singend request parameter. It will give you information if the user likes the page, is admin of the page and additional app_data. Using the php-sdk you can use the getLoginUrl() method, https://developers.facebook.com/docs/reference/php/facebook-getLoginUrl/, to get the access token needed to fetch user name, user id etc.

Categories : Facebook

Add Facebook Page To Corona SDK
you can use native.webView to open the web and request to go to facebook page. but if you need to get data or publish to wall corona support facebook you can visit this link and see if this can help you because it's unclear to me what will you do if you add facebook to your app http://www.coronalabs.com/facebook/

Categories : PHP

Get Facebook Page Likes all at once in c#
Sadly, there's no way you can access the list of your 53,000 fans through Graph API (neither via FQL). Facebook prevents this list to be accessed to discourage selling fans data to 3rd party companies (and as a subtle way to prevent competition of targeted ads). However, with the Like button plugin endpoint URL (https://www.facebook.com/plugins/fan.php?connections=100&id=XXXXXX) you can parse the HTML and saving the new ones appearing there, iterating a call to the endpoint every X seconds. Just be careful as this is really not allowed on Facebook TOS and you can be banned (or even get a legal complaint) by implementing that. Cheers!

Categories : Facebook

How to download Facebook page?
Use the API instead? The data for the URL you mentioned can also be retrieved from this one: http://graph.facebook.com/?id=189662541197403 Also, that reduces your entire code to this line : json_decode(file_get_contents('http://graph.facebook.com/?id=189662541197403'));

Categories : PHP

cannot add existing page to Facebook App
Please ensure you are using the pro version and confirm this. It seems this functionality is only provided in pro. Wordpress requires a separate action to authorize pages. So using an app for example you'll first authorize your account to be accessed and then another popup will appear asking you to select one of many pages in your account. Is anything like this happening?

Categories : Facebook

Get all photos of a page using Facebook API
When you get your Facebook user, you can: get the list of all its albums get the user's profile picture get the photos the user (or friend) is tagged in They respectively need those permissions: user_photos or friends_photos not needed user_photos or friends_photos UPDATE: If you want to get those information from a Facebook page: Photos - The Page's uploaded photos. Albums - The photo albums the Page has uploaded. Permissions are: any valid access_token or user access_token

Categories : Facebook

Facebook Like Button On Web page
See if adding this to your head makes any difference!?! <meta property="og:title" content="Some Title"/> <meta property="og:type" content="article"/> <meta property="og:url" content="http://www.jplandman.co.za"/> <meta property="og:site_name" content="JP Landman"/> <meta property="og:description" content="Some content"/>

Categories : HTML



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.