w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Ruby -- Using facebook's Graph API Explorer in conjunction with the koala gem
I don't really know about your posts.fields(likes.fields(id,name) -this does not work in the Graph API Explorer- and stuff like that but I know you can do this: fb_api = Koala::Facebook::API.new(access_token) fb_api.api("/me?fields=id,name,posts") # => => {"id"=>"71170", "name"=>"My Name", "posts"=>{"paging"=>{"next"=>"https://graph.facebook.com/71170/posts?access_token=CAAEO&limit=25&until=13705022", "previous"=>"https://graph.facebook.com/711737070/posts?access_token=CAAEOTYMZD&limit=25&since=1370723&__previous=1"}, "data"=>[{"id"=>"71170_1013572471", "comments"=>{"count"=>0}, "created_time"=>"2013-06-09T08:03:43+0000", "from"=>{"id"=>"71170", "name"=>"My Name"}, "updated_time"=>"2013-06-09T08:03:43+0000", "priva

Categories : Ruby

Decoding json string from facebook graph api explorer in php
Use json_decode function (http://php.net/manual/en/function.json-decode.php) It accepts the json string as a parameter and returns either array or an object $json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; $obj = json_decode($json); $array = json_decode($json, true); Then, access values like echo $obj->a; echo $array['a']; Both will output 1 In your case you can access the url this way $obj = json_decode($your_fb_result); echo $obj->data->url; OR $array = json_decode($your_fb_result, true); echo $array['data']['url']; Specific to your situation, $response = file_get_contents('http://graph.facebook.com/'.$userid.'/picture?width=180&height=220&redirect=false'); $array = json_decode($response, true); echo $array['data']['url']; See http://php.net/manual/en/fu

Categories : PHP

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 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

Facebook Open Graph Not Showing Object Title
Try clear cache here: https://developers.facebook.com/tools/debug Also you can try set Facebook share link like: https://www.facebook.com/sharer/sharer.php?s=100&p[url]=https%3A%2F%2Fparse.com&p[title]=mytitle&p[summary]=mysummary

Categories : Api

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

rails showing blank page
In your query method, you wrote and finder method, but you have write table name there, not model name, finders works on Model name, write like this : In your query method replace this : @a=Coordinates.find("city=?", params[:show]) with this : @a=Coordinate.find("city=?", params[:show]) because model name, always remain singular, unless you make changes any configuration. and I think, there is a problem with your params[:show] with this. Please paste your result of 'params[:show]' Hope it will help. Thanks

Categories : Ruby On Rails

Why is this Meteor example app only showing a blank page?
you need to have meteorite installed on your machine because it uses the router package install meteorite (http://oortcloud.github.io/meteorite/) and then run mrt update inside your app folder and then run meteor and it will work

Categories : Javascript

Phonegap: blank page before showing splash screen
try like this if its a phonegap only http://docs.phonegap.com/en/2.2.0/cordova_splashscreen_splashscreen.md.html

Categories : Android

facebook login on iphone leaves blank page
Okay, I found a solution for doing this in my iOS app for an integrated UIWebView. When someone is not logged in to facebook a popup opens and requests a login. After logging in the user is redirected back to the page from where he hit the like button. However in the UIWebView this redirect URL leaves the user with a blank page. The solution to the problem is to intercept the redirect URL and reload the page with the like button. So, with UIWebView one can intercept the requests before the actual webpage is loaded and react on certain URLs. The code for this look like this: - (void)viewDidLoad { [super viewDidLoad]; self.webview.delegate = self; [self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.example.com/facebook_like_box.html"]]]; }

Categories : Facebook

get Facebook Graph api page review
The API for Page reviews hasn't been released yet. We are working on it. Please keep checking for the updates here.

Categories : Facebook

My Website is appearing as a blank white page in facebook canvas
I fixed it! It was an xframe option issue due to using rails4. Also, rails 4 requires a post route in routes.rb to work well with facebook. Cannot display my rails 4 app in iframe even if 'X-Frame-Options' is 'ALLOWALL' thanks for helping everyone!

Categories : Facebook

How to execute insert query without actually opening the php file and showing a blank page?
Yes, it's possible. 1. AJAX As tymeJV already mentioned in his comment: you can use AJAX for this. 2. Change process.php A second option is to change your process.php-file. <?php $myServer = "MyComputerNameSQLEXPRESS"; $myUser = "Username"; $myPass = "password"; $myDB = "Northwind"; //connection to the database $dbhandle = mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer"); //select a database to work with $selected = mssql_select_db($myDB, $dbhandle) or die("Couldn't open database $myDB"); $query = "Insert into Employees values ('".$_POST["firstName"]."','".$_POST["lastName"]."')"; mssql_query($query); mssql_close(); // Redirect header("location: index.php"); ?> Lose the HTML tags and add a redirect header. Yo

Categories : PHP

Post image to Facebook Page Timeline via Graph API
To post to own Timeline you need to acquire Page access token from /me/accounts and not by getting a user token or exchanging token for a long term token. With that and album ID you can post to an album, which shows up on the Timeline.

Categories : Facebook

Facebook iOS SDK(Graph API) can't access public page information
I now resolved this by userId = [NSString stringWithFormat:@"%@", userId]. Seems like I need this for pages but not for users. I don't know why this is present or if someone else encountered this problem, but that's my way of solving it.

Categories : IOS

Facebook Graph API - get page feed + full event info?
There is a post from Facebook addressing this scenario using multi-queries and FQL (Facebook Query Language). This will allow you to make multiple FQL calls in one request. https://developers.facebook.com/docs/technical-guides/fql/#multi

Categories : Javascript

List Facebook Page events on website for a Venue using FQL or Graph API
I figured it out. This question helped, but was not correct and there is a syntax error in an answer: Get Facebook events from public fan page From what I found, you need to become an FB developer, create an app, get an ID and secret. Use the SDK (PHP in my case), and this question had a good example of returning the list I want: Link from ticket_uri is opening a blank page I am having the same issue though of getting blank pages on the ticket link if the user is not logged into FB. But my original issue is solved.

Categories : Facebook

In Facebook graph API how to find which all of your friends like a particular page with detail info?
Simple, just add another IN to the query SELECT uid, pic, name, username FROM user WHERE uid in (SELECT uid FROM page_fan WHERE page_id = 114719705207104 AND uid IN (SELECT uid2 FROM friend WHERE uid1=me())) The UID is the user id you want. The URL for the user is equal to www.facebook.com/UID or www.facebook.com/USERNAME Since not every user has a username I advise you to use the first option with the UID. You have many ways of retrieving the user pic, with the uid you can use the graph api to fetch the pic in various sizes, doing this https://graph.facebook.com/UID/picture or https://graph.facebook.com/USERNAME/picture Then adding some get parameters you can configure the size of the pic. You can read more about that here If you want to keep using FQL for selecting the pic, you h

Categories : Database

Add Open Graph Meta Tag After Page is Loaded, for Facebook Share button
I don't think this is possible, since JS code does not get executed. See How does Facebook Sharer select Images? Can I update these meta tags with client side code like Javascript or jQuery? No. Much like search engine crawlers, the Facebook scraper does not execute scripts so whatever meta tags are present when the page is downloaded are the meta tags that are used for image selection.

Categories : PHP

Facebook is not showing Thumbnail Image on share page
I have made some chnages in my images, which I'm using for thumbnail image, now some posts shows thumbs and some doesn't show any thumb, if someone faced this type of problem please share. You can go through this link for more information.

Categories : PHP

What is the pixel size (wide) on the facebook interface before showing page ads and my message option
If you want to know things like this, and you know your way around a graphics editing program, make a screen shot of the FB page, load it into your editor and measure in there. These programs e.g. all show the size of the bounding rectangle if you make a rectangular selection of the item you want to measure. This does not work if the objects in the web page size with your windows browser size, but even then you can often calculate a size by e.g. subtracting sizes of fixed elements from your browser window size.

Categories : Facebook

Facebook Graph API - access_token=app_id|app_secret - search Graph API without user login
According to Facebook The following changes will go into effect on July 10, 2013: ..... Graph API search changes App access tokens will be required for all search Graph API calls except Places and Pages. Search for application will no longer be supported.

Categories : C#

2 near identical URL's integrated with Open Graph tags have separate behaviors when doing a Facebook graph call
Well, I think we cannot help you without the real url of the object, so as to see what it is! Have you try both url (the real ones) in facebook debugger: https://developers.facebook.com/tools/debug to see the difference?

Categories : Facebook

Prevent Facebook from grouping Open Graph actions in Graph API?
You need to use a different endpoint: /me/<app_namespace>:<action_name> This will return all actions published by your app for a given action and a given user. For example, using a user access token: https://graph.facebook.com/me/my_cooking_app:bake?access_token=...

Categories : Facebook

How to fetch data from given graph URL in facebook graph API
This is just a 2 steps thing Parse the next/previous URL from the response. You can do it yourself or one of the many libraries With the timestamp parsed, just call your function recursively and "since" in the Graph URL. function getFBData(date) { FB.api('/me/photos?fields=created_time&since=' + date, function(response){ var pager = "parse the paging data from facebook" getFBData(pager); }); }

Categories : Javascript

Fetch facebook user public data, which available without loggining througth Facebook Graph API if any exists
This isn't possible unless you have an access token. The public graph doesn't reflect the browser information it reflects what is given in the documentation https://developers.facebook.com/docs/reference/api/user/

Categories : Java

How to get facebook users' public statuses using facebook graph API?
https://graph.facebook.com/PAGE_OR_USER_ID/statuses?access_token=ACCESS_TOKEN works fine if you have a valid access token.

Categories : Facebook

Retrieve zip code of a facebook user by facebook graph API
If you check the documentation for the /me call at https://developers.facebook.com/docs/reference/api/user/ you'll note that there is no reference to the user's zip or postal code. I'd recommend you use ask for the user_location permission and then call /me?fields=location and try to derive the zip code from the information contained therein - this answer http://stackoverflow.com/a/7129344/2091159 - has some information about doing so.

Categories : PHP

Generating list of facebook friends using Facebook's Graph API
First of all you need to add proper permission to access education history of user & user's friends, which you can achieved by doing this but remember user_education_history is to access User education while friends_education_history is for User's friends education history: $params = array( 'scope' => 'user_education_history, friends_education_history, user_location, email'); $loginUrl = $facebook->getLoginUrl($params); And to access education field you have to modify one line from your code like this: $user_profile = $facebook->api('/me?fields=name,education,email','GET'); You can use below code to just print your $user_profile and then parse it according to your requirements: <pre><?php print_r($user_profile); ?></pre> Probably its too late answer f

Categories : PHP

crystal report is displaying blank screen in Internet explorer
This fixed it for me. What it neglects to mention is the crystalReportViewer folder has to be copied from Program Files(x86) to the proper subfolder under aspnet_client. You may already have a block in web.config. You only need one. The second bit of code goes below that section. Copy the folders under "inetpubwwwrootaspnet_client" and paste them under the root of the custom web site Add the following to the application web.config file: <configSections> <sectionGroup name="businessObjects"> <sectionGroup name="crystalReports"> <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"/> </sectionGroup> </sectionGroup> </configSections> <businessObjects> <crystalRepor

Categories : Asp Net Mvc

When creating a new blank C# ASP.NET Empty Website nothing shows up in the Solution Explorer
An empty solution contains nothing, therefore it is called empty. If you want to see a sample, you should choose ASP.NET Web Forms Application or ASP.NET MVC Application.

Categories : Visual Studio 2012

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

mplot3d gives blank graph but no error
In the version of matplotlib I have (1.2.1) the projection="3d" will raise an error unless you also include: from mpl_toolkits.mplot3d import Axes3D The only thing I can't check is the line Y = dates.date2num(maturities) As I am unfamiliar with what data type date2num expects, do you have any sample data? Other than this everything works fine for me

Categories : Python

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

Why facebook access token from Spring Social returns empty array, while Facebook Graph Api token works fine
You need to submit a post request to spring social ConnectController for the specific provider e.g. http://wwww.yourdomain:8089/connect/facebook. Spring social then will redirect the user to facebook authorization page where the user will grant your app with the asked permissions and send back a code to your server. Spring social then will exchange that code for an access token. You need to establish a connection for that user to be able to perform requests against FB on his/her behalf. Here is a doc page that might help http://static.springsource.org/spring-social/docs/1.0.0.M2/reference/html/connecting.html

Categories : Java

Facebook Like Button Post to Facebook Box is Not Showing Properly?
Try to turn off "sending" and "show faces" functions for it. XFBML code should thendisplay the button look something like this: <fb:like href="yoursite.com" send="false" layout="box_count" width="150" show_faces="false"></fb:like> Other thing could be that the FB button is partially overlayed by another layer. Try to wrap the code above to <div></div>, create a class for this div like that <div class="myclass"></div> and then use a z-index css property like this: .myclass { z-index: 1; }

Categories : CSS

How can I get facebook cover url from Facebook graph API
To parse the JSON in PHP you are required to use json_decode(returned_facebook_json) and then access the data as you access a Object, for example $JSONString=file_get_contents('http://graph.facebook.com/{user_id or page_id}?fields=cover'); $parsedJSON = json_decode($JSONString); echo $source = $parsedJSON->cover->source; echo $offset_y = $parsedJSON->cover->offset_y;

Categories : PHP

Excel Macro Graph Removing Blank Legend Keys
Here you have a corrected version of your sub: Sub FixPlott(PlotName As String) Dim n As Long With ActiveSheet.Shapes(PlotName).Chart For n = .SeriesCollection.Count To 1 Step -1 With .SeriesCollection(n) If .Name = "" Then ActiveSheet.Shapes(PlotName).Chart.Legend.LegendEntries(n).Delete End If End With Next n End With End Sub I am not sure about the exact trigger you want to use. So I have included a simple string trigger; if the given SeriesCollection is called like trigger, the legend will be deleted.

Categories : Excel

JW Player not showing up for internet explorer users
In addition to removing the comma on the last line, I would also update your player from 6.2 to 6.5 - http://account.longtailvideo.com/

Categories : Internet Explorer

Isotope Images is not showing in internet explorer
are you getting following error in IE debugger SEC7112: Le script de http://raw.github.com/desandro/isotope/master/jquery.isotope.min.js a été bloqué à cause d'une incompatibilité de type mime The script has been blocked due to mime type mismatch You shouldn't be linking directly to raw.github.com. Fortunately, there's rawgithub.com to solve for that! Try http://rawgithub.com/desandro/isotope/master/jquery.isotope.min.js

Categories : HTML



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