w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
While Sending Html Mails from my web application Recieved Mails contains Symbols like &ldquo,&rdquo, ‘
Check with another constructor for htmlView: ContentType mimeType = new System.Net.Mime.ContentType("text/html"); var htmlView = AlternateView.CreateAlternateViewFromString(bodyMessage, mimeType);

Categories : Asp Net Mvc

Generate access token without User Interaction for publish-actions
Following scenario 5 of https://developers.facebook.com/roadmap/offline-access-removal/ should allow you to authorize once as a user and then use the page token indefinitely without any need to re-authorize. 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 : C#

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

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

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

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

Is it possible to use Facebook insights without publishing actions
Insights can be retrieved only as an array. To read Insights you need a generic access_token for the publicly available application_active_users metric a generic app access_token for all Insights for that app read_insights permissions for all apps, pages and domains owned by this user https://developers.facebook.com/docs/reference/api/insights/

Categories : Facebook

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

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

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 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 handle URLs from Facebook Open Graph actions in iOS app
Facebook documents this here: https://developers.facebook.com/docs/ios/link-to-your-native-app-ios-sdk/ Just look under How to handle deep links to provide a more relevant user experience

Categories : IOS

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

VS2012 MSBuild: Publish a Web Application Project with Existing Publish Profile
Old question, but in case this helps anyone, this simple, stripped back approach worked fine for me: <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> ... <BuildDependsOn> $(BuildDependsOn); PublishOtherProject; </BuildDependsOn> </PropertyGroup> <Target Name="PublishOtherProject"> <MSBuild Projects="pathtomyproject.csproj" Properties="DeployOnBuild=true;PublishProfile=nameOfPublishProfile" /> </Target> The key line being: <MSBuild Projects="pathtomyproject.csproj" Properties="DeployOnBuild=true;PublishProfile=nameOfPublishProfile" />

Categories : Visual Studio 2012

How to use PubNub publish callback to find out which message to re-publish in case of an error
PubNub REST API provide JSONP format as well. You can create map of "callback function" identifiers to actual messages and when processing completed, you can obtain reference on original message using "callback function" identifier from response. For example: https://pubsub.pubnub.com/publish/demo/demo/0/iosdev/m_2c453/%22Hello%20world2%22 As you can see, there is m_2c453 in URI, it will be used by server in response: m_2c453([1,"Sent","14034711347326358"]) And here we know, that m_2c453 has been used to send "Hello world" message. But, I think platform dependent PubNub SDK should handle all this for you.

Categories : Java

"Publish Now" button doesn't work, but Build>Publish does
Since "rebuild solution" and "clean Solution" are not solving these issues, it might be either logs or assemblies in Bin. This error seems to be caused by various issues : Solution 1. set the build log verbosity to Diagnostic from the menu Tools->Options->Project and Solutions->Build and Run in Visual Studio 2010. After that, if you build and publish your project, you can see the detailed build log from the Output window. From there, we should get futher information about why it failed to build. Solution 2. Do you have Google Desktop by chance? If you do, close the sidebar and try once. Solution 3. Click here for an another solution Solution 4. Do you work with people from other timezones ? Files modified in future time may also cause this issue. check this utility Solution 5.

Categories : C#

How to publish generic file using web publish in Visual Studio?
Internet Information Service does not serve the files that it does not know about. Your .dat file is not supported by IIS by default so you have to add it manually. Add following configuration to your web.config file. <configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".dat" mimeType="application/octet-stream" /> </staticContent> </system.webServer> </configuration>

Categories : Asp Net

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

WebAPI OData Actions Sample - Differentianting between CheckOut and CheckOutMany actions
Your observation about CheckOutMany is correct. It doesn't make sense for CheckOutMany to bind to a an entity collection as it is already taking the movie id's it has to check out as an input.

Categories : C#

Even after putting actions handlers in 'actions' object, I still keep getting a deprecation message in Emberjs
Why do you have filteredContent in a actions hash anyway? It's a Computed Property and thus should not be inside the actions hash. Try a moving filteredContent outside the actions hash. Hope it helps.

Categories : Javascript

EmberJS actions - call one action from another when wrapped within `actions`
You can use the send(actionName, arguments) method. App.IndexController = Ember.ArrayController.extend({ actions: { actionFoo: function() { alert('foo'); this.send('actionBar'); }, actionBar: function() { alert('bar'); } } }); Here is a jsfiddle with this sample http://jsfiddle.net/marciojunior/pxz4y/

Categories : Javascript

App rejection 22.1
---22.1--- code rejection means that Apps must comply with all legal requirements in any location where they are made available to users. It is the developer’s obligation to understand and conform to all local laws Make sure your app is not doing anything illegal wherever it’s sold. Basically it’s about keeping Apple’s responsibility out of it. Here is the complety error code related discription of Rejection app take a look this doc apples-app-store-review-guidelines-annotated-explained

Categories : Iphone

Medium data publish works and Large data publish throws an error? (Node.js & RabbitMQ)
Are you having a problem using the 'amqp' module directly? If so, their issue tab on github is probably the best place to report the problem. If you like, try using my 'servicebus' module as well: https://github.com/mateodelnorte/servicebus. 'npm install servicebus' will get it for you.

Categories : Javascript

NULL rejection in mysql
This discussion of "null-rejected" conditions is simply about optimizing queries that are more complex than they need to be; it doesn't change the behavior of a query at all. Consider this query: select * from table1 left outer join table2 on table1.id=table2.id where table2.id is not null This query is written as an outer join, and yet it also discards any row in which table2 is null (the null-rejected condition is the condition in the where clause that excludes any rows that are null). The where clause in this query rejects any of the "outer rows" from the outer join. This means that it is not really an outer join at all; it could be rewritten as this: select * from table1 inner join table2 on table1.id=table2.id MySQL recognizes this situation and automatically opt

Categories : Mysql

Run Maxima on iOS Without Rejection From The App Store?
There are 3 considerations: - you can include "open source" software provided you don't charge for it - "reduce" is built in to another app; as both rely on LISP for the actual work, I would think that you can if they can - there is (or was) a rule that you cannot include your own interpreter, but if the app I mentioned above can do it then you probably can on the basis that the user cannot run LISP directly but only through your interface Of course, these are my personal opinions and comments - you really need to try it out with Apple. Susan

Categories : IOS

What is the reason behind my App rejection by AppStore?
The reason is because of Legal requirements. Please read the Appstore Guidelines. This Links(link1 link2)may help you. Easiest way to resolve this issue would probably be to decide which countries you want to make your app available in, research their local laws to see if any thing is illegal. What if I make my app available on other countries than usa? You can easily mention/edit those details In itunes connect under rights and pricing. You can restrict the countries your app will be available in, untick any you don't want. Here are the screen shots. Please logg-in to iTunes and select your app and edit the below settings (2nd page of App details)

Categories : IOS

Pushing on one branch; rejection on another
When you are doing git push, git tries to push all the branches that have remotes. So you did successfully push feature/blogs. development failed because you are behind for that remote. If you git checkout development then do a git pull, you should get updates for that branch. Do git push origin feature/blogs to only push the one branch. Since you are only trying to push feature/blogs, this message isn't anything to worry about. Unless the branch that failed to push was feature/blogs I believe that this feature is changing in the newest version of git. In that git push will only push the branch that you are on rather than all of them.

Categories : GIT

Unhandled rejection reasons (should be empty)
Based on this confusing discussion it's a false positive. To silence the logging you can do this: Q.stopUnhandledRejectionTracking(); If you didn't capture the rejection it would throw the error, so you'll still see it in the console after adding the code above. JSFiddle: http://jsfiddle.net/homeyer/FpyDr/22/

Categories : Javascript

iOS App Rejection related to Spotify new library
I'll fix this when I return to work after my vacation. In the meantime, the message you pasted in pretty much tells you how to fix it — add the NSURLIsExcludedFromBackupKey attribute to the two directories Spotify is creating. One is named after your user agent inside the NSApplicationSupportDirectory, and the other under the NSCachesDirectory. The code for creating these directories is in SPSession.m in the initWithApplicationKey:… method - it should be trivial to add the required metadata keys to those two directories.

Categories : IOS

Angularjs promise rejection chaining
And what the reason why it is done. In which case, the current behavior can be useful? It can be useful when in errorHandler you could try to repair error state and resolve promise somehow. var retriesCount = 0; function doWork() { return $http.post('url') .then(function(response){ // check success-property of returned data if(response.data.success) // just unwrap data from response, may be do some other manipulations return response.data; else // reject with error return $q.reject('some error occured'); }) .then(/*skip success handler >> */null, function(reason){ if(retriesCount++ < 3) // some error, let me try to recov

Categories : Javascript

App binary rejection because of missing storyboard file?
I'm not sure if this is your problem, but one thing to check: With the storyboard file selected in the Xcode Project Navigator on the left side, click on the File Inspector tab in the Utilities panel on the right side and make sure your storyboard file has the check box selected for your project under Target Membership. If it is not selected, the file will not be included in the app bundle, although it will still be editable.

Categories : Iphone

How can I know the error reason in promise's rejection handler?
Handling of errors returned by the server is not yet fully implemented in ember data. For reference, as stated in this blog post about ember-data: We want to make error handling and dealing with client and server conflicts rock solid. A pull request from Paul Chavard is currently open and looks like a solid starting point for error handling. You should see much more development on this in the near future. But there are some workaround you can do to get to that information in the meanwhile. For example: Ember.RSVP.configure('onerror', function(error) { console.log(error.message); console.log(error.stack); }); Or use a dirty hack to get to that information. Since ember-data uses jQuery under the hood you can subscribe to ajaxError: $(document).ajaxError(function(event, jqXHR,

Categories : Ember Js

struts2-rest plugin..making both struts actions + rest actions work together but. giving java.lang.reflect.InvocationTargetException
ive solved the problem with customMapper.. this is my custom mapper class.... package org.apache.struts2.rest.example; import javax.servlet.http.HttpServletRequest; import org.apache.struts2.dispatcher.mapper.ActionMapper; import org.apache.struts2.dispatcher.mapper.ActionMapping; import org.apache.struts2.dispatcher.mapper.DefaultActionMapper; import com.opensymphony.xwork2.config.ConfigurationManager; public class CustomActionMapper extends DefaultActionMapper { public ActionMapping getMapping(HttpServletRequest request, ConfigurationManager configManager) { return getActionMapper(request, configManager).getMapping(request, configManager); } private ActionMapper getActionMapper(HttpServletRequest request, ConfigurationManager configM

Categories : Rest

ERROR whitelist rejection on phonegap, need plist format
I did put that: `<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>KeyboardDisplayRequiresUserAction</key> <true/> ... <key>BackupWebStorage</key> <string>cloud</string> <key>ExternalHosts</key> <array> <string>dl.dropbox.com</string> </array> <key>Plugins</key> <dict>` into Cordova.plist file.

Categories : IOS

Phonegap Build for Windows Phone avoid rejection
It seems that the most Win 7/8 mobile supported version of Phonegap is 2.7.0. Remember you have to also allow for back-button usage on win8 http://www.risingj.com/archives/493

Categories : Cordova

Handling promise rejection in ember-data with findQuery()
I don't know if it's only a typo, but the events hash in your PostRoute should be called events you seam to have defined it as singular event this might be the problem why your error hook inside that hash not getting found and this not invoked: App.PostRoute = Ember.Route.extend({ ... events: { error: function (reason, transition) { console.log('Error!'); } } }); Hope it helps.

Categories : Ember Js



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