w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
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

Request more permission from Facebook Session returns an error
You need to call the onActivityResult() method on your current Session when asking for more permissions: @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data); uiHelper.onActivityResult(requestCode, resultCode, data); }

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

Uploading video to facebook from iOS -- unable to request log in permission from user, error code 6
All of your code after NSURL *videourl should be moved to another method. Currently it is being executed while the requestAccessToAccountsWithType: request is in progress so the facebookAccount reference isn't available yet. So, the new method that you create and move that code to should be called from the completion block if granted is true. Note hat you can't just immediately request publish permissions. You must request read permissions first and then, once it's been granted, request publish permissions.

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

Phonegap Android Facebook plugin publish_stream permission request throws "Error calling method on NPObject"
I seem to have gotten to the root of the problem. When logging in initially, I can't ask for write ("publish") permissions. As I understand I must ask them later after initial login. Which is abit uncomfortable for me, since I might have to prompt user for permissions several times during a single use-case which is bad. Perhaps I am missing some documentation page where all that stuff is already mentioned?

Categories : Facebook

Facebook Session object has "email" permission but Request.executeMeRequestAsync(...) returns no email
The issue is described here: https://developers.facebook.com/bugs/482815835078469/ and one of the commenters, Mai Khánh, writes: I found why this happened, please thumbs up so that support team can be noticed. 1/ Go to this link: https://www.facebook.com/settings?tab=account&section=email&view. 2/ Look at Primary email editing form, if the radio button isn't checked by default, the bug will appear. I think this is cause by facebook system sometime confusing when a facebook account has more than 1 email. My temp solution: Add more random email to that account -> the form will ask you to select primary email -> choose primary email -> fill in passwork, then submit -> done. The point is if you just check primary account without adding another random ema

Categories : Android

how to get read permission before publishing permission for uploading video on Facebook using SLRequest?
It is very simple. That is my implementation of it: - (void)requestAccessToFacebookAccountWithCompletionHandler:(QCFacebookCommunicatorCompletionHandler)completionHandler { [[self accountStore] requestAccessToAccountsWithType:[self accountType] options:[self facebookAccountAccessRequestOptionsForReadStreamPermission] completion:^(BOOL accessForReadingGranted, NSError *error) { if (accessForReadingGranted) { [[self accountStore] requestAccessToAccountsWithType:[self accountType] options:[self facebookAccountAccessRequestOptionsForPublishStreamPermission] completion:^(BOOL accessForWrittingGranted, NSError *error) { if (accessForWrittingGranted) { completionHandler(YES, nil); } else { completionH

Categories : Iphone

Error message facebook ads-api advertising an event with ads_management permission of the user
Ads on Facebook are always created using the context of current user, so only objects that are accessible by the current user can be promoted. In this case, the user creating the ads does not have access to the event that is being promoted and it is not public, therefore it cannot be promoted. It is not sufficient for your app to have access to a user's objects.

Categories : Facebook

Form submitting to old action after changing the action via jQuery
Maybe you should try to use prop instead of attr. var action = $('#update-schedule-form').prop('action'); $('#update-schedule-form').prop('action', action + '/1'); Check this answer for .prop() vs .attr()

Categories : PHP

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

MVC Ajax Request not triggering in controller when submitting request
You have the Action labelled with [HttpPost]. This will work fine on the AJAX request with the POST HttpMethod, but the initial page load will be a GET Request - try removing the [HttpPost] or restructuring so that you have: [HttpPost] public ActionResult Schedule(int id = 0, string customerSearch = "") { Customer customer = _customerRepository.Find(id); return PartialView("Schedule", customer); } [HttpGet] public ActionResult Schedule(int id = 0) { return View(); } Also, your AJAX form is not posting from an input with name="id", so that will need to be addressed.

Categories : Asp Net Mvc

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

Request for Request Token from Intuit IPP gives permission denied
Eureka! I figured it out! And thank you, Manas, I would not have found this solution without that last link you gave. For anyone who is wondering: I had to create a custom http.Client using the appengine.urlfetch library. Once I figured that out, the solution was simple, I just had to change one line of code that created the client into this: client := urlfetch.Client(appengine.NewContext(r)) Problem solved!

Categories : Google App Engine

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

Error retrieving email and location from Facebook Request in Android
Your query: "me/friends?fields=id,name,location,email" That means you are trying to fetch name, location, email. You can get the name, but for the location you need the permission friends_location; for email- facebook dont allow you to fetch the email of the friends. I hope i don;t have to create a request for each of my friends to get data Of-course not. Your query is right, you'll get an array in the result just like- { "data": [ { "name": Friend1_Name, "location": { "id": Friend1_LocationID, "name": Friend1_Location }, "id": Friend1_ID }, { "name": Friend2_Name, "location": { "id": Friend2_LocationID, "name": Friend2_Location }, "id": Friend2_ID

Categories : Android

The remote server returned an error: (400) Bad Request. When try to login with facebook in asp.net
Ooo been a while since Iv'e played with webRequest but I think your problem might be webRequest.GetResponse().GetResponseStream().Close(); in the finally block. Since you've already called webRequest.GetResponse().GetResponseStream() in the body of try block. Documentation states: The GetResponse method sends a request to an Internet resource and returns a WebResponse instance. If the request has already been initiated by a call to GetRequestStream, the GetResponse method completes the request and returns any response. Therefore as I read it, the response had already been returned in the try block and then when you call it again in the finally block, it fails...since it's already been retrieved. Just comment out that line and see how you go. The StreamReader should clo

Categories : Asp Net

Android Facebook SDK "new permissions for a session that has pending request" error
Session.openActiveSession() returns a Session, use that Session instead. You are using Session.getActiveSession() to request the read permissions. Remember that the call() is asynchronous and it can also be called several times until the state of the session is opened. Your code will reach Session.openActiveSession()before the Session can reach the opened state. Also, you should check state.isOpened() instead of the session.isOpened() since you are waiting for the open state in which you can make a Request.

Categories : Android

Facebook App request not sending to Facebook friends through Facebook Android SDK
Direct the request Bundle params = new Bundle(); params.putString("message", "I just smashed " + application.getScore() + " friends! Can you beat it?"); // 2. Optionally provide a 'to' param to direct the request at a specific user params.putString("to", "515768651"); // Phil showDialogWithoutNotificationBar("apprequests", params); Suggest friends Bundle params = new Bundle(); params.putString("message", "I just smashed " + application.getScore() + " friends! Can you beat it?"); String [] suggestedFriends = { "695755709", "685145706", "569496010", "286400088", "627802916", }; params.putString("suggestions", TextUtils.join(",", suggestedFriends)); showDialogWithoutNotificationBar("apprequests", params); Ref : http://developers.facebook.com/docs/tutorials/a

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

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

Parse with Facebook Login: Server refused renewal request with error code: 190
Your error sub code points to this static const int FBSDKSystemPasswordErrorSubcode = 65001; case FBSDKSystemPasswordErrorSubcode: case FBAuthSubcodePasswordChanged: if (subcode == FBSDKSystemPasswordErrorSubcode || [FBErrorUtility fberrorIsErrorFromSystemSession:error]) { userMessageKey = @"FBE:PasswordChangedDevice"; userMessageDefault = @"Your Facebook password has changed. To confirm your password, open Settings > Facebook and tap your name."; shouldNotifyUser = YES; } else { userMessageKey = @"FBE:PasswordChanged"; userMessageDefault = @"Your Facebook password has changed. Please log into this app again to reconnect y

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

Submitting form action using javascript codeigniter
WORKING WITHOUT JS Try this: <?php $frmAttrs = array("id"=>"addFrm"); echo form_open('core/add_name', $frmAttrs); ?> <input type="text" name="name"> <input type="text" name="age"> <!-- <input type="button" onClick="this.form.action='<?php //echo site_url('core/')?>'+'add_name';this.form.submit();" value="new"/> --> <input type="button" id="submitFrm" onClick="this.form.submit();" value="new" /> </form>

Categories : Codeigniter

form submitting without performing any action rails
If you check your params hash you'll see that those keys don't exist. Instead, you'll see that params[:custpmer] does and that it contains those fields. This is just how rails builds the params in a form_for style. So try this instead: username = params[:customer][:username] password = params[:customer][:password]

Categories : Ruby On Rails

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

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

Submitting a form to external link (but a local action before doing so)
I would submit a JSF form via AJAX behind the scenes first and when the response arrives I would submit your plain HTML form to an external URL. Example: <script type="text/javascript"> function jsf(data) { if(data.status == 'success') { document.getElementById('plain-submit').click(); } } function normal() { document.getElementById('jsf-submit').click(); } </script> ... <h:form prependId="false"> ... <h:commandButton id="jsf-submit" action="#{bean.action} value="Submit" style="display:none"> <f:ajax execute="@form" ... onevent="jsf"/> </h:commandButton> </h:form> <form method="POST" action="https://EXTERNAL-LINK.com/"> ... <input id="button-submit" type="but

Categories : Java

In Jenkins, what does the "Publish to Subversion repository" in Add post-build action dropdown do?
I found the answer... https://wiki.jenkins-ci.org/display/JENKINS/SVN+Publisher It says that the Publish to svn repository plugin allows you to upload artifacts to a subversion repository.

Categories : GIT

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

Struts 1 redirect from action to action with parameters as POST request
You can't, it is not a Struts problem. It is how HTTP is designed. When a browser is redirected, it perform a GET request. You cannot ask the browser to do a POST instead. The only way would be to add some Javascript to send the request. Or you can also ask Struts to do an internal redirection but it will be hidden to the client and the url will not change.

Categories : Java

Submitting new OpenGraph Action for review without deploying it to the live environment
When you make changes to your open graph actions, they will not be available to your end users until they are approved. This means your users will be able to use your "non-broken" actions, even if you make any breaking changes to them. Further Reading Another scenario (which is pretty obvious but I would still like to state): If you have breaking changes in your application code that you dont want to deploy, you can create a staging environment and deploy your site there. So, for action approval you will submit staging server's address to facebook approval team. This will require that your staging server must have access to the app. This means your staging environment must be a sub domain of your production. Eg. lets say your production is www.example.com, then your staging should be st

Categories : Facebook

Setting page to 1 on DisplayTag after submitting a form to a Struts action
I use clearStatus attribute of <display:table>: <display:table id="${tableId}" class="displaytag" clearStatus="${param['filter'] != null}" excludedParams="filter" keepStatus="true" name="${employListForm.persons}" pagesize="20" requestURI="employlist/personsList.jsp" summary="Employees"> <display:column class="selectPerson" title="Edit"> <t:popup styleClass="button" href="${editUrl}&amp;personIndex=${pageScope[tableRowNum]}"> <t:icon name="edit" alt="Edit" title="Edit" /> </t:popup> </display:column> <display:column property="specialityName" title="Speciality" /> <display:column property="name" title="Name" /> <display:column property="statusWorkName" title="Status" /> </display:tab

Categories : Java

Not able to set user_friends permission in facebook app
To ask for additional permission like user_friends you need to add the permission as scope when generating the login URL, instead of adding it under permissions section of the admin settings page of your app. If you are using PHP for your development, then you be to provide the scope as a parameter to the getLoginUrl (). $params = array( 'scope' => 'read_stream, friends_likes', 'redirect_uri' => 'https://www.myapp.com/post_login_page' ); $loginUrl = $facebook->getLoginUrl($params);

Categories : Facebook

android how to add permission to facebook
If you use a LoginButton, use: loginButton.setReadPermissions(Arrays.asList("email")); If you start the Session yourself, use: session.openForRead(new Session.OpenRequest(this).setPermissions(Arrays.asList("email"))); requests/permissions helpfull link: https://developers.facebook.com/tools/explorer/ After successfull login, try the request again including the email field.

Categories : Android

Facebook Open Graph follow action provokes an error when uses Open Grahp Test User as a profile
I faced the same issue as you did and filed a bug with Facebook: https://developers.facebook.com/bugs/1509327415958565 Facebook was able to reproduce this issue and are mentioning it appears to be a bug and assigned this task to the appropriate team. Edit: It turns out this behavior is by design when a test user is following a real user. FB recommends for testing to use 2 test users and let one test user follow the other test user.

Categories : Facebook

Getting publish_actions permission with just a common Post action
Ensure you are actually requesting the permissions in your permission scope array. For example, this doesn't set your permissions The above is only for the App Center. Usage must be as the following in PHP SDK $params = array( 'scope' => 'publish_actions', 'redirect_uri' => 'https://www.myapp.com/post_login_page' ); $loginUrl = $facebook->getLoginUrl($params); or in the JS SDK FB.login(function(response) { // handle the response }, {scope: 'publish_actions'}); For more information see https://developers.facebook.com/docs/facebook-login/permissions/#adding

Categories : Facebook



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