w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Missing photos when retrieving Users tagged photos facebook-graph API
The only thing that comes to mind is the settings of each user since according to the answer posted here - facebook graph api - missing fields, API access to these things can be turned off at the user's discretion.

Categories : Facebook

How to represent a group of C++ dynamically allocated objects as a BGL (Boost Graph Library) graph in order to obtain their dependency graph?
The integers are indices to the vertices and edges of the graph. So, in your example, the first vertex is a and the second vertex is b while the first edge connects vertices 1 and 2 ( a and b ) Each vertex has properties. So, in your example, the first vertex is named a and has a pointer to a. The graph algorithms use the integer indices to manipulate the graph, and your code can use the indices to get back to the properties that you are interested in, such as names and pointers. Here is how I would code the example you posted: /** Bundled properties for graph vertices Simply contains a pointer to the associated MyObject */ class cVertex { public: MyObject * pObject; }; class cEdge { }; class cGraphProps { }; .... // The BGL graph typedef boost::adjacency_list <

Categories : C++

Uploading photos to Instagram via your own iOS app
What you are trying to do is implemented through the Instagram API http://instagram.com/developer/. You can also use the Instagram App to do some similar actions. These are documented under iPhone Hooks. If you are using Ruby Motion, then you will be able to use the official framework. Unfortunately, there is no officially supported Objective-C iOS API but some open source alternatives are available, like the NRGramKit. The exact way of implementing the interaction with the Instagram API is beyond a Stack Overflow answer but the links above should give you a good starting point if you are familiar with iOS programming.

Categories : IOS

Uploading photos or videos to Facebook using Python
This works for me. import requests url='https://graph-video.facebook.com/100000198728296/videos?access_token='+str(access) path="/home/abc.mp4" files={'file':open(path,'rb')} flag=requests.post(url, files=files).text print flag flag will return json containing video id on successful upload of video

Categories : Python

uploading photos/videos on facebook app running on android or ios?
"should I expect any problems with uploading photos/videos from mobile devices -> android, iOS, blackBerry ?" No. But 1 thing you should know that the user wont be able to post photos/videos to the friends wall (if that's in your requirement); yet there's a workaround that the user can tag his/her friends in the photo/video. Some links that might be useful to you- Videos Android iOS API Reference Photos Android iOS API Reference

Categories : Android

Uncaught OAuthException: (#200) User cannot access this application only when uploading photos to facebook
Insted of "$fb->api('/'.$GROUP_ID.'/photos?" use "$fb->api('/'.$ALBUM_ID.'/photos?" i.e. use any of the existing album id or do not mention any album id. In second case, it will create a new album for your application

Categories : PHP

How to delete facebook timeline photos with php graph api?
You can delete a tag for a particular user in the photo by issuing a HTTP DELETE request to /PHOTO_ID/tags/USER_ID or PHOTO_ID/tags?to=USER_ID. Deleting a tag on a photo requires the publish_stream permission and supports the following parameters. Parameter Description Type Required to USER_ID of the User to tag; can also be provided in URL path (see above). string yes If the deletion is successful, you get the following return. Description Type If the deletion succeeded boolean for more info study the graph api for photo here http://developers.facebook.com/docs/reference/api/photo/

Categories : PHP

Uploading photos to Facebook: Adding parameters before executing the newUploadPhotoRequest call gives the 'OAuthException' error
When you create an newUploadPhotoRequest, that method will implicitly add some parameters to the Request object that's returned. When you call setParameter, you're replacing those implicit parameters with your own, which causes the request to be missing some required params. What you should do instead is: Request request = Request.newUploadPhotoRequest(Session.getActiveSession(), BitmapFactory.decodeResource(_context.getResources(), R.drawable.default_image), uploadPhotoRequestCallback); Bundle parameters = request.getParameters(); // <-- THIS IS IMPORTANT parameters.putString(...); // add more params here request.setParameters(parameters); request.executeAsync();

Categories : Android

graph.facebook.com/me/home photos width and height
Graph API do not return the size of the image in terms of width and height. However, you can specify the size you want to retrieve using 'height' and 'width' parameters e.g: me/picture?width=70&height=90 Also, there are some default sizes you can retrieve using 'type' parameter: https://developers.facebook.com/docs/reference/api/using-pictures/#sizes In the end, you can retrieve a picture of any size and programmatically get its width and height. Javascript examples: Modern browsers and IE9+: var width = document.getElementById('yourImg').naturalWidth, height = document.getElementById('yourImg').naturalHeight; console.log(width, height); For IE8-: var img = new Image(), // or document.createElement('img') width, height; img.onload = function() { width = this.

Categories : Facebook

iOS - Facebook Open Graph Api -- ensuring that photos are user generated
You should be able to replace your code: if (photoURL) { NSMutableDictionary *image = [[NSMutableDictionary alloc] init]; [image setObject:photoURL forKey:@"url"]; NSMutableArray *images = [[NSMutableArray alloc] init]; [images addObject:image]; action.image = images; } with: if (photoURL) { NSMutableDictionary *image = [[NSMutableDictionary alloc] init]; [image setObject:photoURL forKey:@"url"]; [image setObject:@"true" forKey:@"user_generated"]; // <======= ***add this line*** NSMutableArray *images = [[NSMutableArray alloc] init]; [images addObject:image]; action.image = images; }

Categories : IOS

Facebook FQL: Get group post status photos
Just saying that it works fine for me: SELECT post_id, attachment, type, message, created_time FROM stream WHERE post_id="POST_ID" POST_ID looking like: 481234567779150_559912345679366. The permissions I use are user_groups and user_friends. { "data": [ { "post_id": "481234567779150_559912345679366", "attachment": { "media": [ { "href": "https://www.facebook.com/photo.php?fbid=10123450&set=gm.5599123456789366&type=1&relevant_count=1", "alt": "bla bla bla", "type": "photo", "src": "https://fbcdn-photos-f-a.akamaihd.net/hphotos-ak-prn1/1013188_102013456789034740_1177097408_s.jpg", "photo": { "aid": "65904234567838363", "pid": "65904345678990795",

Categories : Facebook

Create a button in order to add a group of photos to a gallery
This is a very basic question. You should read the jQuery docs about DOM manipulation http://api.jquery.com/category/manipulation/ To answer your question: You can use before to insert a DOM element before your button: $(".more").before('<a href="images/big/05.jpg" class="photo"><img alt="" src="images/gallery/05.jpg"></a>')

Categories : Javascript

facebook open graph - Photo uploading
According to facebook's gudelines user generated photos are those that are taken by mobile's camera.So you won't be able to post the bigger picture. But you can post a 196X196 px image by using og:image meta tag in the object webpage.

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

OpenLink Virtuoso - Uploading RDF file into a named graph via HTTP API
HTTP PUT with the sparql-graph-crud-auth URL works, and has a graph-uri query parameter: http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtGraphProtocolCURLExamples

Categories : Misc

How can I show last saved photo in Photos app iOS via "photos-redirect:" URL scheme?
photos-redirect:// is the URL Scheme for Photo App. However, it is undocumented, thus you shouldn't use it. To view / select a photo, use UIImagePickerController .

Categories : IOS

How to add 'add people to group' functionality via graph API or FQL?
You can not simply add people to a group. The user has to want to be added :) I wouldn't want any old application adding me to groups without my permission. The best thing you can do is have your application send an invite to the user. As stated in the documentation, you would need something like this : Applications can invite users to a group by issuing a POST request to /GROUP_ID/members/USER_ID with an app access_token. The user will then receive a notification which will allow them to respond to the invite.

Categories : Facebook

How can I export the feed from a group using Graph API?
You'll need to use one of the Facebook SDK's in order to programmatically access the Facebook API. Some popular ones are the JavaScript and PHP SDK's. The docs for each contain how to make API calls, and then you can use your code to handle the response to do whatever you want with them (as long as you stay within Facebook's policies). An example of an API call in Facebook would be (after loading the SDK and having a valid login): FB.api('/me', function(response) { alert(response.name); }); Let me know if that makes sense, or if you're still unclear how to approach API calls.

Categories : Facebook

How to get facebook group name list using graph API
On the screenshot where you see Get Access Token click . Under the user data permission category check user_groups then you will get the data.

Categories : Android

Is it possible to read post from facebook group via Open Graph?
Yes, it's possible. You can access to it if you have a token and the group id, using this url : https://graph.facebook.com/{OBJECT_ID}/feed?access_token Note that you can access only to public posts.

Categories : Facebook

Can't add member to a group in Azure Active Directory through Graph API
You probably need to give proper access in the Azure portal and configure this in your project for a WEB APPLICATION AND/OR WEB API. This changes were made recently in the portal (before we had to do a lot of things using PowerShell). We made an article explaining more or less how to configure everything: http://www.clouddevx.com/en-us/Blog/ArtMID/836/ArticleID/2 EDIT: just to give some more explanation what I think is that you probably have to set the service with informations about the Client ID and password obtained in the Azure portal: var tenantName = "emyode.com"; string clientId = "clientId obtained in Azure portal"; string password = "security key obtained in Azure portal"; var token = DirectoryDataServiceAuthorizationHelper.GetAuthorizationToken(tenantName, clientId, pass

Categories : Azure

Group All Related Records in Many to Many Relationship, SQL graph connected components
You are trying to find all of the connected components of your graph, which can only be done iteratively. If you know the maximum width of any connected component (i.e. the maximum number of links you will have to take from one company/publisher to another), you could in principle do it something like this: SELECT MIN(x2.groupID) AS groupID, x1.Company, x1.Publisher FROM Table1 AS x1 INNER JOIN ( SELECT MIN(x2.Company) AS groupID, x1.Company, x1.Publisher FROM Table1 AS x1 INNER JOIN Table1 AS x2 ON x1.Publisher = x2.Publisher GROUP BY x1.Publisher, x1.Company ) AS x2 ON x1.Company = x2.Company GROUP BY x1.Publisher, x1.Company; You have to keep ne

Categories : SQL

Image uploading using codeigniter file uploading class
try this one say your input file like <input type="file" name="image" id="image"> now change the following line !$this->upload->do_upload() with !$this->upload->do_upload('image') please let me know if you face any problem. UPDATE if you want to sent it to the template then do like this if (!$this->upload->do_upload()) { $error = array('error' => $this->upload->display_errors()); $this->session->set_flashdata('msg',$error['error']); redirect('controller_name/function_name','refresh'); } try this and let me know.

Categories : Image

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#

automatically create and convert graph(bar graph and pie chart) into pdf in iOS without creating a uiview for graphs
There's no need to add the graph to a hosting view just to create an image or PDF. Set the graph bounds to the desired size and call -dataForPDFRepresentationOfLayer. This method returns an NSData object containing the PDF data.

Categories : Iphone

Open graph story posted succesfully using graph API but not seen neither on the timeline nor in the Activity Log
I could totally be wrong, but you may need to submit your Open Graph action to Facebook for approval. And you'll need to set explicit sharing if you want your action to show in places other than your own timeline and activity. I say I could be wrong because you should at least be able to see your action within your activity log. It's difficult to say without looking more closely at your Open Graph Action and Object.

Categories : Facebook

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

How to find subgraphs in a directed graph without converting to undirected graph?
You are looking for SCC of the graph, that are strongy connected component s. They can be found with a variant of DFS (depth first search). You should take a look at the wiki article.

Categories : Python

Drawing a graph with some properties displayed with Boost Graph Library
NEW ANSWER Its a dube, see How to print a boost graph in graphviz with one of the properties displayed? boost graph library - minimal example of vertex colors and graphviz output http://www.boost.org/doc/libs/1_54_0/libs/graph/doc/write-graphviz.html How to print a graph in graphviz with multiple properties displayed drawing custom BGL graph with graphviz C++ Boost Graph Library: outputting custom vertex properties OLD ANSWER: There are many resources online which specifies how to draw advanced graphs using Graphviz. Here are some which I have found useful in the past: www.graphviz.org/pdf/dotguide.pdf‎ www.graphviz.org/content/attrs www.graphviz.org/content/output-formats www.graphviz.org/doc/info/shapes.html http://graphviz-dev.appspot.com/ The last link is an online render,

Categories : Misc

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

Which (free) graph/chart package has 3d line graph for Rails app?
You can consider using D3 http://d3js.org/ for advanced graphs or jqplot http://www.jqplot.com/‎

Categories : Ruby On Rails

Control graph(call graph) for entire java project
See CallGraph Viewer on the marketplace. Also standard shortcut Ctrl-Alt-H may help.

Categories : Java

Select ID from GROUP BY group if the group satisfied criteria
you should check beluw link http://www.w3schools.com/sql/sql_where.asp should use where caluse like 'where shipping_date = null '

Categories : SQL

Using JUNG to find disconnected sub graph in a graph
Simple BFS will give you the answer...start your BFS from any node you will find all the nodes reachable from it..then again start BFS from another another node which has not been visited and so on...

Categories : Java

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

Find all linesegments=edges within a certain distance to a point in a graph, how to combine boost-graph with boost-geometry?
For lines I would use the Hesse Normal Form for each segment calculate the distance and select or discard that line. The Hesse Normal Form /// Hesse Normal Form /// NOTE: Since negative distances from the origin are accepted, it is almost /// a Hesse Normal Form, only) template<class ScalarType> class HesseNormalForm2D { public: typedef ScalarType Scalar; typedef Normal2D<Scalar> Normal; typedef Vector2D<Scalar> Vector; typedef Point2D<Scalar> Point; typedef Line2D<Scalar> Line; public: /// An invalid line initialized with NaN. static HesseNormalForm2D nan() { return HesseNormalForm2D(Normal::nan(), Scalar::nan()); } /// An undefined line. HesseNormalForm2D() {} /// A line defined by a normal and a di

Categories : C++

Combine the bar graph and line graph
AChartEngine library supports combined charts also.. You can download source from here which fits your requirememnt. For more reference refer here

Categories : Android

converting a graph to a bipartite graph
The general BFS algorithm to check if a graph is bipartite is: Start from a vertex v_0, and label it s1. Mark all v_0's neighbours as s2, and queue them. Mark all the neighbour's neigbours as s1, and queue them If, at any point, you get to mark as s2 a vertex already marked as s1 or vice versa, the graph is not bipartite. If, instead, you end up with an empty queue, you are done, and you have your partition. EDIT If what you want to know, instead, is how you can build a bipartite graph from a general one, you should first add a metric to compare two different solutions : otherwise, removing all the edges and assigning randomly the vertices to two groups, will always generate a ( trivial ) bipartite graph from any given one.

Categories : Algorithm

Optimization on Algorithm to check "Whether for a given directed graph there is only one way to sort the graph using topological sort or not"
Theorem: A directed graph has a unique topological sort if and only if it is a directed chain. Proof left as exercise for you To determine if a directed graph has a unique topological sort, all you have to do is: Find any node with in-degree 0 If there isn't one, the graph has a cycle and does not have a unique topological sort Repeatedly follow the first out-edge of the current node, adding the visited nodes to a set as you go Stop when: You reach a node you have already visited - the graph has a cycle, so it does not have a unique topological sort You reach a dead end - the graph has a unique topological sort if and only if the set of visited nodes contains all of the nodes in the graph Your code doesn't seem to follow this simple approach. (Correct me if I'm wrong about that

Categories : C++

Is it even possible to tag photos in Facebook?
You must get Photo ID firs and then tag someone on this photo upload photo to album $photo_details = array( 'message' => $message, 'access_token' => $token ); $photo_details['image'] = '@' . realpath($file); $uploaded_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details); Get Photo ID $photo_id = $uploaded_photo['id']; set Friend ID you want to tag $tags = array( array('tag_uid' => $friend_id, 'x' => rand() % 100, 'y' => rand() % 100 ) ); tag friend $facebook->api('/'.$photo_id.'/tags', 'post', array('tags'=>$tags)); It works for me, I hope this will help you

Categories : PHP



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