w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Stop receiving real time updates for a Facebook page
There are two possible alternatives: Go to https://www.facebook.com/{page_id}/settings?tab=apps and manually remove the application from the page. If the app is not there, it has already been removed. Or: You can use the Real-time Update documentation and use a DELETE API call to unsubscribe the page from real-time updates. However, if your application is used with more than once page, it will also unsubscribe the other pages.

Categories : Facebook

websockets and real time updates in iOS
I would take a look at these two projects: SocketRocket is an Objective-C WebSocket library. socket.IO-objc is an Objective-C Socket IO library that uses SocketRocket.

Categories : Iphone

Real-Time Excel Updates
You cannot do this using Apache POI. If you have an Excel spreadsheet open in Excel, then you will get a FileNotFoundException if you attempt to write your changes to that file. At least on Windows, you will get something like this: java.io.FileNotFoundException: MySpreadsheet.xlsx (The process cannot access the file because it is being used by another process) Additionally, even if this worked, there is nothing in the Apache POI API that interacts with the Excel application itself, so you cannot tell Excel to re-open the spreadsheet.

Categories : Java

Perl: How to get real-time updates during execution
First, stop using global variables for no reason. And add at least a simple check as to whether open succeeded or not. open(my $OUT, ">>", $filename) or die $!; You simply have to turn off buffering use IO::Handle; # Only needed for older versions of Perl $OUT->autoflush(1); Then you can print as normal. print $OUT "text ";

Categories : Perl

Local Currency - How to handle real time updates for refunds, disputes and chargebacks?
Facebook has acknowledged the bug here: https://developers.facebook.com/bugs/2074441772694571?refsrc=https%3A%2F%2Fdevelopers.facebook.com%2Fbugs%2F2074441772694571&refid=9 and is apparently working on a fix.

Categories : Facebook

NoSQL Database for real-time, two-player Facebook Game
I would consider using Couchbase. It is easy to run/manage. It uses JSON for data storage, which is great for Javascript based applications as it's a native data structure. It's very popular amongst gaming companies. It's lightning fast (it's memcached + persistence in a single layer, so we're talking RAM speed) and scales super easily. You would still need to build a REST API service in front of Couchbase to serve your needs, but since the schema is flexible, it is a breeze to build your data model. If you need help figuring that out, ping me @scalabl3.

Categories : Database

Facebook Real Time Update return only "changed_fields":["feed"] and not the actual comment
Update: found this, sounds promising: http://allfacebook.com/page-posts-real-time-updates-api_b111225 I have the same problem. As far as I can tell, this is what FB's system was designed to do, even though we would really LIKE to get higher granularity information pushed (and it would likely be more efficient for FB's servers, since as it is now, developers may have to write code that digs through the feed to find the relevant comment or such, possibly fetching quite a lot of stuff we through away, just to get one comment). Bummer. If anyone has any good ideas to offer, I'd be grateful. We want our app to react to certain comments on a user's wall, which we do already for the user's own status updates, but to do it for comments it looks like we would have to scrape the whole feed (which

Categories : Facebook

Are there any free compression utilities that zip in real time like Xceed Real-Time Zip?
What you are looking for is stream compression approach. Good news is you have quite a lot of options. Please also note you have to think about memory because some solutions (dictionary-based) might require a lot of memory, so test and tune. In order to keep my answer short I would suggest to give LZ4 a try. LZ4 - http://code.google.com/p/lz4/ LZ4 is a very fast lossless compression algorithm, providing compression speed at 300 MB/s per core, scalable with multi-cores CPU. It also features an extremely fast decoder, with speed in GB/s per core, typically reaching RAM speed limits on multi-core systems. Benchmark: Name Ratio C.speed D.speed MB/s MB/s LZ4 (r97) 2.084 410 1810 LZO 2.06 2.106 409 600 QuickLZ 1.5.

Categories : Dotnet

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

Can't publish on Facebook using Facebook SDK for Android
Facebook Login only works for single activity of your application. You need mention the activity name and package name while your creating facebook appid. So Finally Facebook authentication and posting only works for specified activity.

Categories : Android

Publish Facebook app in fanpage
You really wanna submit app to app center? Your app will work well without it, moreover - appcenter is designed for canvas application. If you wanna make your application accessible for everyone, just disable sanbox mode.

Categories : Facebook

what all permission i need to publish on facebook?
To tackle the error: (#100) The post's links must direct to the application's connect or canvas URL., you have to set "Stream Post Url Security" to false in App Setting. Sidenote: You don't need user_birthday and others to publish a feed. Only publish_stream is required.

Categories : Facebook

Publish photo on wall with facebook sdk
Finally got it to work!!! com.facebook.Request request = com.facebook.Request.newUploadPhotoRequest(Session.getActiveSession(), bmp, new Request.Callback() {...}); Bundle params = request.getParameters(); params.putString("name", "sup"); request.setParameters(params); Request.executeBatchAsync(request); Hope it helps you too ;)

Categories : Android

Facebook Sdk for ios publish -dark screen
You can do like this, while opening the session specify permission to publish post NSArray *permissions = [[NSArray alloc] initWithObjects:@"publish_actions",@"publish_stream",nil]; //permissions return [FBSession openActiveSessionWithPermissions:permissions allowLoginUI:allowLoginUI completionHandler:^(FBSession *session,FBSessionState state,NSError *error) and whenever you want to publish, do like this NSMutableDictionary *params = [[NSMutableDictionary alloc]initWithObjectsAndKeys:TextView.text, @"message",nil]; // set the formats if([FBSession.activeSession.permissions indexOfObject:@"publish_actions"] != NSNotFound) { [FBRequestConnection startWithGraphPath:@"me/feed" parameters:params HTTPMethod:@"POST" completionHandler:^(FBRequestConnection *connection, id res

Categories : IOS

read and publish permission in facebook sdk 3.0 iOS
The two sessions you refer to are actually the same session (it's the "active" session that's statically available after a call to openActiveSession... is called). So you don't need to do anything with the other session. You should have a look at either the Scrumptious or Hello Facebook sample apps that ship with the SDK. They both give examples on how to post (while asking for publish permissions).

Categories : IOS

Is it possible to remove the Facebook sidebar from apps I publish?
If you're hosting your app on facebook.com (apps.facebook.com/something) then you don't get to control the entire browser window, just the iframe which contains your app. If you need full control of the browser, host your app off-facebook.

Categories : Facebook

Converting date from SQLite manager to real time (mountain standard time)
Try this: SELECT datetime(399082293, 'unixepoch', 'localtime'); the result given for me is: 1982-08-25 01:11:33 There is more information about various date formatting options in SQLite on this page.

Categories : Sqlite

Properly Requesting Publish Permissions using Facebook-Android SDK 3.0
As Ming Li has pointed out in a comment, you do not need to implement uihelpers but you'll need the following in addition. Implement StatusCallback private Session.StatusCallback statusCallback = new SessionStatusCallback(); private class SessionStatusCallback implements Session.StatusCallback { @Override public void call(final Session session, SessionState state, Exception exception) { if (session.isOpened()) { switch (state) { case OPENED_TOKEN_UPDATED: publishStory(); // Comes here after the new permissions are requested break; } } } } Implement onActivityResult() @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResu

Categories : Android

How do I publish a Facebook Collection on the Users Timeline per default?
Straight answer: you can't (Sorry for the heart break!). From facebook collection docs: A person using your app can optionally add your custom section to their timeline. Custom sections and collections are not added to the timeline by default. Sections are generally opt-in. More reading So basically a user has to manually add your section. Although I kind of felt that I never added section for Goodreads on my timeline, but it was still visible, so I thought there might be some way, but after researching on it for two days I could not find anything definitive as to why this was happening. Two theories I could come up with (and these are my private take on the issue, so take them with a pinch of salt): Maybe facebook adds sections for some top apps (well you could argue what that mean

Categories : Facebook

Facebook sdk: publish url to "what's on your mind box" using params caption android
i check your code, make sure your session is valid. exception throws: "Missing message or attachment". So, please pass "message" also with request like below. public void postOnWall(String msg) { try { String response = facebook.request("me"); Bundle parameters = new Bundle(); parameters.putString("caption",msg); parameters.putString("message","message1"); response = facebook.request("me/feed", parameters, "POST"); Log.d("System out", "got response: " + response); if (response == null || response.equals("") || response.equals("false")) { Log.e("System out", "Blank response"); } } catch(Exception e) { e.printStackTrace()

Categories : Android

Facebook page's status updates
I think you can get what you want by the facebook graph. Go and read out the documentaion for the paging section. you will find out the answer.!! heres the link, This may help.: Facebook Graph API

Categories : Android

How can I subscribe to a page's updates on Facebook?
I figured out the answer. I needed to explicitly send the app_id argument: <?php // $facebook is the Facebook object (imagine that I've already initialized it) $facebook->api($pageId . '/tabs', array( 'app_id' => $facebook->getAppId(), )); ?>

Categories : PHP

Change the real time into a given span of time, with jquery, mysql and/or php
Interesting problem. I would think the algorithm would go something like this: Calculate what percentage of an actual day has passed. Use that to calculate how much time has passed in a virtual day (multiply times 32400 to get the number of seconds, probably). Add that number of seconds to a date object that has been set to 20:00PM on today's date.

Categories : Javascript

Facebook RestFB publish a post/milestone along with photo to page
It appears this is a (deliberate?) limitation of the Facebook Graph API. See Upload image to Facebook Wall / Feed via Graph API You may post image data directly to a photo album but the feed endpoints only accept image URLs.

Categories : Facebook

How to implement auto publish to user's facebook timeline just like Instagram ?
your case perfectly suits the model in the chart. You said "I am trying to make the post that user publish to our app to user's facebook timeline". I'm assuming you are attempting to mimic instagram since you mentioned it. Let's say user A 'logged-in-by-facebook' on your app and made a post within your app, the app posted to your server (and push back to other users of your Android/iPhone app so they can see, right?). At this time, there's nothing to post to the user's timeline, the scope is in your app only. If the user chooses to post to his Facebook timeline, you take that very same post (which is now saved on your server) and made the call to Graph API and post there, so his friends on FB just see the FB version, not the one within your app.

Categories : IOS

how to get user's posts & updates from Google plus like facebook
From a backend server you can easily perform this API call to read a user's public activities. You can see the REST API here: https://developers.google.com/apis-explorer/#p/plus/v1/plus.activities.list Combine this with a people.list and you can query for a user's friend activities on Google+. On iOS, you probably don't want to make these API calls directly from a user's device. If you can, you should offload the work to a backend server to avoid overworking the mobile client. That said, you can perform an API query similar to listing people in circles: GTLQueryPlus *query = [GTLQueryPlus queryForActivitiesListWithUserId:@"me" collection:@"public"]; [[[GPPSignIn sharedInstance] plusService] executeQuery:query completionHandler:^(GTLServiceTicket

Categories : Iphone

How to set callback url in Facebook realtime updates using nodejs
try using "passport" for authentication in node.js... you can set the call back url as follows..... passport.use(new FacebookStrategy( { clientID: FACEBOOK_APP_ID, clientSecret: FACEBOOK_APP_SECRET, callbackURL: "your url" }

Categories : Facebook

get latest 5 status updates using Facebook javascript sdk
Use the login code mentioned here: https://developers.facebook.com/docs/facebook-login/getting-started-web/ in the Add the login code part. Then edit your testAPI()- function testAPI() { console.log('Welcome! Fetching your information.... '); FB.api('/me', function(response) { console.log('Good to see you, ' + response.name + '.'); }); FB.api('/cocacola/feed?limit=5', function(response) { for (var i=0; i<response.data.length; i++) { console.log(i + " : " + response.data[i].message); } }); } Live Demo to get the list of parameters feed supports: Feed The implementation is quite simple and self-understood, let me know if you find any difficulty using this.

Categories : Javascript

Realtime Updates from Facebook in Windows Phone
It is not possible for a WP app to receive such updates from Facebook. Because you don't have any such API for the purpose. What about RealTime API ? Well, it is possible to get Realtime updates from facebook using that API, but it requires you to specify a callback Url. In other words, it require you to have a web server with an web application that can accept GET and POST requests from server. After receiving such updates, your webapp can broadcast updates to device using PUSH Notification Service. Any Workaround ? Yes ane workaround can be to use a periodic task that runs and fetch data after regular intervals. But beware of: Amount of Data you send in periodic Task (Battery + Data Consideration). Reliability factor of Periodic Tasks (Thay may not run at all).

Categories : Facebook

iphone development: cannot open active Facebook session with publish permission
In the first part of the code when you are requesting new publish permissions you have [NSArray arrayWithObject:@"publish_action"] .... If i am not not mistaken I think that should be [NSArray arrayWithObject:@"publish_actions"] Here is code snip from facebook docs https://developers.facebook.com/docs/technical-guides/iossdk/errors/ // Method that requests permissions needed to make the API call. - (void)requestPermissionCallAPI { [FBSession.activeSession requestNewPublishPermissions:[NSArray arrayWithObject:@"publish_actions"] defaultAudience:FBSessionDefaultAudienceEveryone completionHandler:^(FBSession *session, NSError *error) { if (error) { // Handle new per

Categories : Iphone

Facebook Realtime Updates Subscription Verification in Python
ANSWER: Facebook without forewarning sends multiple requests to the endpoint in question and with the Flask development server those requests have no way of being handled, therefore the timeout. I fired up a gunicorn server with a few workers to test that theory and it proved to be true because I now have a successful subscription verification. For anyone else having this issue with flask: $ sudo pip install gunicorn $ which gunicorn /usr/local/bin/gunicorn # fire up your endpoint with a few gunicorn workers to handle the load # facebook tests our endpoint with (we will use 4 workers on port 5000) # my_app is your_app_name.py without the .py part $ /usr/local/bin/gunicorn -w 4 -b my-local-ipv4-ip:5000 my_app:app

Categories : Python

detecting photo upload using facebook realtime updates
Facebook says the following at the Realtime Updates description (https://developers.facebook.com/docs/reference/api/realtime/ - Below "Types of Updates"): Note that you can not subscribe to changes on all properties and connections of the User object. Connections to which you can subscribe include: feed, friends, activities, interests, music, books, movies, television, likes, checkins, location, events. The only thing I could think of is that you subscribe to the feed connection and do some postprocessing to find out whether the post was related to a photo: GET https://graph.facebook.com/{USER_ID}/feed?fields=id,link,type,link&since={YOUR_TIMESTAMP}&access_token={ACCESS_TOKEN} You can derive the USER_ID from the POST coming from Facebook's Realtime Updates, the YOUR_TIMESTAMP

Categories : Facebook

Facebook Realtime Updates for Disputes, Refunds and Chargebacks
Yes. For disputes, changed_fields will contain value disputes if your payment subscription has disputes field. Whenever an payment update occurs, facebook will call your server real time. In POST data, changed_fields will contain changed parameter. For example, suppose you are subscribed for user data with field value name, whenever user updates his name, your server will be called with name in changed_fields array.

Categories : Facebook

iOS - How do I convert float time to real time (hh:mm)
Probably you would like to do the conversion to time like in this example but before you need to get the integer values from float. Fot this you can use modulo to sparate things before and after comma.

Categories : IOS

http://www.facebook.com/sharer.php?u= content not refreshing with page updates
actually facebook gets your page information at the time of posting and save it in their database. so next time it fetches that url and information from their database not from your page. you may have to share that page again to make new entry in database of the facebook. but old one will remain there.

Categories : Facebook

(Probable) inconsistency in "id"s returned by facebook Graph API and Realtime Updates?
Here is the response from facebook engineers - This is by design. For a realtime update generated by a comment, the parent_id will just show and not include the page_id. For specific examples, please refer to our documentation (https://developers.facebook.com/docs/reference/api/page/#realtime) and look under the sub-sections "Feed Example."

Categories : Facebook

IBM Worklight - config app facebook to run in real device
I believe this error happens to you because you are using the Facebook JavaScript SDK. This SDK is meant for when the web resources are on a server: web sites or mobile web apps The Facebook App requires an App Domain/Site URL that a site or mobile web app would have, but an Android app doesn't have a domain... A Worklight Hybrid app with the Android environment, while using web resources, is not a "mobile web app", it's an app. Thus, you should either use a Cordova plug-in that implements Facebook login across platforms (whichever is available by the plug-in), or use the Facebook SDK for Android.

Categories : Android

Reading status updates of Facebook user requires read_mailbox permissions on iOS
I've found the problem: I was using absolute paths with the SLRequest, such as https://graph.facebook.com/me/statuses?fields=message&limit=200 which was fine with iOS Social Framework. But Facebook SDK requires relative paths, so changing the path to a relative path by stripping out the graph.facebook.com base worked. My "URL" is now /me/statuses?fields=message&limit=200 and it works. Those URLs could be handled in a better way though, instead of telling an error message that has nothing to do with what I'm trying to achieve. Anyway, if you are on Facebook SDK, be careful to use relative graph paths, not absolute URLs.

Categories : IOS

Facebook OAuth 2 - Post to multiple Facebook profiles at the same time
Posting to a user's wall requires a valid access token of that user. So you can save the extended token of the users when user logged-in. You can replace the short-lived token with the long-lived token by making the call- GET /oauth/access_token? grant_type=fb_exchange_token& client_id={app-id}& client_secret={app-secret}& fb_exchange_token={short-lived-token} Reference

Categories : Facebook

Program that updates the current time by one second
It's because you pass the structure by value and return it by value in all the functions. Therefore in clockKeeper when you call timeUpdate you pass a copy that will be modified, but you don't actually update the copy local to clockKeeper. Every time you do a call you have to remember to assign it back to itself, e.g.: struct dateAndTime clockKeeper(struct dateAndTime now) { now = timeUpdate(now); // Note assignment back to `now` // If hours reaches 24, increments dys by one if (now.hours == 24) { now = dateUpdate(now); // Note assignment back to `now` } return now; } Or you can pass the structure by reference, by using pointers to the structure. Like this: struct dateAndTime *dateUpdate(struct dateAndTime *now) { now->days++;

Categories : C



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