Image post in Facebook wall

Hi,
       I would like to know, how can i post the image in facebook and google+ via my flash interface developed in AS2. Any ideas will be pretty much helpful for my developement as i don't have any idea of doing it.
I have created the site and user can upload the files from his desktop. my pendig part is, if user wants to post a image from his uploaded photo, he needs to have a option for that.
Kindly help me out.
Regards,
Kameshwaran A.

you should use something like the following to login the user:
  (function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=229095550543776";
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
    // initialize with fb js (after it loads) with your App ID
    window.fbAsyncInit = function() {
      FB.init({
        appId      : 'YOUR APP ID',
        status     : true, // check login status
        cookie     : true, // enable cookies to allow the server to access the session
        xfbml      : true  // parse XFBML
      // fbLoginStatus is called when there is a login status change and when fb js initializes
      function fbLoginStatus(response) {
          // If the user is logged in, response.status is 'connected'
          if (response.status === 'connected') {
            FB.api('/me', function(response) {
                toSWF("is connected:: "+response.status);
                evalF(response);
          } else {
              // The user is not logged-in.
              toSWF("not connected:: "+response.status);
              evalF(response);
      // This is the code that calls fbLoginStatus on initialization
      FB.getLoginStatus(fbLoginStatus);
      // This is the code that call fbLoginStatus when there is a status change
      FB.Event.subscribe('auth.statusChange', fbLoginStatus);
// and you can use the following to request permissions.  the permissions are hard-coded below but you may want to pass a parameter to permissionsF if you want flexibility here:
function permissionsF(){
var obj = {
method: 'permissions.request',
perms: 'user_birthday,user_relationship_details,read_stream',
display: 'popup'
FB.ui(obj, function(response) {
toSWF("permissions **");
evalF(response);
p.s.  please mark helpful/correct responses.

Similar Messages

  • Unable to post to Facebook wall due to NSURLErrorDomain error -1

    I am a new user to Aperture. Tried Googling this error and Aperture problems with Facebook and didn't find anything similar. Here is the error I am getting:
    I am trying to share photos directly to my wall vs. going in to an album. I am still researching, but thought I would post and ask the question here too.

    HI,
    Open Keychain Access (Applications/Utilities) Select Passwords on the left.
    Delete your Facebook keychain.
    Relaunch Safari, login into Facebook with your username and password. Click Yes when prompted.
    If that didn't help, you may have the Facebook plugin installed.
    In a Finder window select your Home Folder in the Sidebar on the left. It has a small house icon. Now on the right open the Library folder, then the Internet Plug-ns folder. Move the fbplugin file to the Trash and relaunch Safari.
    Carolyn

  • How to add a border around images posted to Facebook?

    I am using LR 4.1, also usis PS CS5.
    Anyone who uses Facebook to showcase image galleries knows that Facebook changes how images are displayed from time to time.  One month it will be on a black background and the next on a white background.  And then they put overlay's on top of your images and they change things around whenever they wish.  There is not rock solid consistency from Facebook on how they display your images across devices or over time.
    What I am trying to do is to add some consistency to how my images are displayed by adding my own border to my images.  I need some ideas on how to best do this.  The way that I have been doing it does not appear to be ideal and I think someone must have a better way.
    Ideally, I would want Lightroom to add a border for me based on some setting under the export manager.  But as far I know there is no setting to do this?  (Why doesn't lightroom have any border options anywhere yet for anything it exports?  This would be relatively simple I think.)
    Here is the only way I know how to solve my issue.
    First, my other considerations:
    I want to keep my original images in my catalog in tact and as is w/o a border and with layers if it is a .psd file.  I do NOT want to destructively add a border to the catalog images, only the images that end up on Facebook.  I also want to add my watermark image to the final image so that it is done as the last step so that the bottom part of my watermark shows my web site address over the white border on the bottom of the image.  Using a droplet and the watermark in the same step does not work properly because it applies the watermark before it runs the action, not after.
    I have created an action to add a x pixel white border by:
    Merging (flatten) all layers
    Creating a new unlocked background "image" layer
    Expanding the canvas by x pixels.
    Creating a new white filled layer and moving it to the bottom of the layer's pallet.
    Adding a 2 pixel black inside stroke to my image layer and adding a drop shadow.
    I created a droplet from this action and put it in the droplet folder for LR.
    Now for the repeated steps that I am going through...
    Select the images that I want to write to Facebook.
    Export these images to a new folder using the droplet.
    Import the folder of all of these images back into Lightroom.
    Move the new images with borders on them into the correct LR FB publish service.
    Publish the photos using the sharpening and watermark settings.
    Delete the .psd files created in Step #2
    The steps that I would like to avoid are #2, #3, #6
    Or maybe I am going about this all wrong?  Anybody have any better ideas?

    You may find it much easier to use the Migrify plug-in from Tim Armes/Photographers Toolbox which does what you want from within Lr.

  • I can no longer see my wall photos posted on my facebook walls nor can i see facebook friends photos on their walls. ty

    '''Dear Firefox,
    As of yesterday morning, i can no longer SEE the my wall photos on my Facebook wall. Nor can i see the wall photos on others walls. I've been using Firefox for three + years, and appreciate the great service it provides.
    Thank you for your help. :)'''

    You can use these steps to check if images are blocked:
    *Open the web page that has the images missing in a browser tab.
    *Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    *Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    *Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    *Select the first image link and scroll down through the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.
    See also:
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *https://support.mozilla.org/kb/Images+or+animations+do+not+show

  • Safari won't let me post to Facebook friends' walls, but I can post if I use firefox.  Why?

    Safari will not let me post to facebook friends' walls.  If I use Firefox or Google Chrome, I am able to post to facebook friends' walls.  Since I updated to Lion, Safari is much faster than the other browsers, but the facebook issues are very frustrating.  Has anyone else experienced this issue?

    I stumbled upon the answer to my own question.  The culprit is one of the safari extensions called facebook cleaner!  After in uninstalled and emptied my cache, it is working! 

  • Facebook(wall post) location button not working in mountain lion macbook pro 13inch in upper right button

    facebook(wall post) location button not working in mountain lion macbook pro 13inch in upper right button

    No third party applications installed; no gestures changed. It just starts acting up like I described a few times a day. I'll be browsing the internet and go to switch desktops and it suddenly doesn't work.

  • Facebook Image Post Request

    Hi guys, i´m implementing a Facebook Photo Request from ABAP, using fiddler I create this message that was succesfully posted in facebook page, now I´m trying to copy this post using if_http_client and if_http_entity multipart methods.
    POST https://graph.facebook.com/xxxxxxxx/photos?access_token=CAAUnJCRRhVUBAPFMl8p53wH8qfSuZAUZBo1IZCWJIo4Oo0GZC5vIrHd9DzMF7cZCUB9YONhY1SDW3tKCepWiqH9pxOeqnzuMmrzd6N4M2pbDDU7jZADyslPIRMfvsaPrNQXL4ZBxvp0dEZC5y83T5gPdad8EfyPWImv9h5COBEDC10cLvTB2fh9FZBAZACMs5XfpsK0xvLgZDZD HTTP/1.1
    Content-Type: multipart/form-data; boundary=-------------------------acebdf13572468
    User-Agent: Fiddler
    Host: graph.facebook.com
    Content-Length: 758192
    ---------------------------acebdf13572468
    Content-Disposition: form-data; name="fieldNameHere"; filename="2012-Fiat-500-Abarth-Rear-Angle-Speed-Tilt-1920x1440.jpg"
    Content-Type: image/jpeg
    I already set the header fields Content-Type / Content-length but I´m having some issues trying to replicate the boundary in the body in line 08. Here is my code in ABAP that represents the line 08 to 10 + the content of the photo to upload.
    lr_part = lr_client->request->if_http_entity~add_multipart( ).
         CONCATENATE 'form-data; name="fieldNameHere"; filename="' iv_file_name '";' INTO lv_file_header.
         CALL METHOD lr_part->set_header_field
           EXPORTING
             name  = 'content-disposition'
             value = lv_file_header.
         CALL METHOD lr_part->set_content_type
           EXPORTING
             content_type = 'image/jpeg'.
         lv_len = XSTRLEN( iv_file_xstring ).
         CALL METHOD lr_part->append_data
           EXPORTING
             data   = iv_file_xstring
             length = lv_len.
    The facebook response is : "(#324) Requires upload file"
    Any help will be appreciated

    I resolve by myself, the boundary is set by standard I didn´t have to set in the header values, the other thing is that the content-length at header level is set by SAP, i delete that header field in my code.

  • Share images to a Facebook page

    Hi, Is there a way to use Share to post images to a Facebook page wall or album instead of an individual? Since the last FB revision I effectively have one login for both individual and can switch to a page, but need to target the page for them image sharing.
    Thanks very much for any insight.

    Ended up talking to Apple Chat Support -- doesn't look like the function is supported.
    If you want this -- post feedback here:  http://www.apple.com/feedback/macosx.html

  • Unable to view photos that others post on facebook since upgrade

    was able to view photos that friends posted on facebook until ungraded to current version of firefox. Now those photos are just blank white spaces.

    You can use these steps to check if images are blocked:
    *Open the web page that has the images missing in a browser tab.
    *Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    *Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    *Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    *Select the first image link and scroll down through the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *https://support.mozilla.com/kb/Images+or+animations+do+not+show

  • Aperture Stops Posting to Facebook Albums

    Hi All:
    I have done several searches on this topic, and have yet to see this precise problem. I have several Facebook albums [28]. Aperture sees them all. Up until this week, Aperture had no problem posting additional photos to these albums. But I have the following problem:
    1. Aperture 3 fails to add photos to albums [confirmation dialog is active, but no message is returned];
    2. Aperture posts to my Wall with no problem;
    3. I have deleted the Aperture app from Facebook and reauthenticated it;
    4. Neither iPhoto nor iPhoto Exporter is a permitted app on my FB account;
    5. I am working with photos from my Aperture library, not my Photo Stream;
    6. I have set and re-set the HTTPS settings on FB with no change;
    7. I have created new albums on FB from Aperture, but after loading up 1 or 2 photos, Aperture stops loading photos, and refuses to load any more. I can repeat this ad nauseam;
    8. I can add photos manually to FB albums, using their web tool, but intertestingly, the file dialog box does not "see" my most recent photo additions to my Aperture library.
    This is puzzling. Up until recently, Aperture functioned flawlessly with FB. Not pointing fingers, though my inclination is to blame FB, except for that item #8. Is there potentially something wrong with my APerture library?
    Thanks and Happy Holidays!

    I just ran a Consolidate Originals (Move) on the library, and that seemed to help. Aperture was able to publish new photos to albums, but, and this seems odd, in the FB Add Photos  dialog box (in Safari). photos I have added to my library over the last few days do not show up in the dialog box [item #8 above].

  • Publishing to Facebook Wall difficulty

    I am new to Mac and do not really have any expertise. When I selected a photo to publish to my Facebook Wall the upload began but a message appeared which reads:
    This operation couldn't be completed.
    (NSURLErrorDomain error-1.)
    The uploading rotating "Wheel" is still spinning but everything else seems to be frozen. I am not able to Quit iPhoto or do anything with the image. I apologise for sounding so inept in this question but I am truly "feeling my way" here. Even after shutting down the computer and restarting it makes no change to my problem. I would be most grateful for assistance in very simple terms that a beginner can understand.

    Once the Facebook gallery is published you can double-click the gallery name and type in whatever name you would like.
    Alternatively, add the images you want to an Album and name the Albums as you would like. When you click on the Album and then click the Facebook button, the name of the Album will be used as the Facebook gallery name.

  • Why doesn't Firefox display all photos posted on Facebook?

    Firefox will display some, but not all, photos posted by my friends on Facebook. IE8 displays them all. Do I need to reconfigure FireFox settings to see all photos posted on Facebook?

    Thanks. "*Check the "Tools > Page Info > Media" tab for blocked images (scroll through all the images with the cursor Down key). " fixed the problem.

  • All facebook walls/info pages are BLANK...

    using http://facebook.com/home.php (the actual site - not the app or the mobile version)
    i used to be able to view the contents of my walls & other people's/groups/etc as well.
    now, it is completely blank.
    i know i can use the mobile version to view & post on walls, however, i am not able to post links correctly. 
    normally, i would not be one to complain about facebook changes, but is is one of my jobs to be able to post links on various walls.
    please help...? :-)
    Post relates to: Pre p100eww (Sprint)

    btw, my problem started about a week ago 
    before the webos 1.4 update & possibly after facebook's last update (about eliminating boxes...?)
    - sounds like a facebook issue like that - can't post on facebook forums due to my issue... :-(

  • Attempt to share to Facebook "Wall" creates "Aperture" album instead

    Whenever I tell Aperture 3 to share to my Facebook "Wall" it creates an album called "Aperture" instead.
    That album then doesn't even show up in my Aperture Facebook "Web" sync folder. In fact, many of my albums don't show up in Aperture.
    Any thoughts?
    Thanks,
    Manny

    I dislike that Aperture creates its own album on Facebook, where it posts your "Wall" photos. Ordinarily wall photos on Facebook are not part of a particular album, and if you uploaded several in a short period of time, they would appear as separate posts, and not as an album update. But if you do it from Aperture, they are grouped together as an album update, which  can ruin the effect. I haven't found a workaround except to export to your desktop (or other folder) and manually upload to the FB wall.

  • Why can't I post on Facebook in notification center

    Hi all,
    The function to post on Facebook in Notification Center works when I just updated to 10.8.2. Right now I can still see Facebook notifications, but I'm not able to post status update by clicking on the "Click to Post" at the top of Notification Center. (Nothing happens when I click it.)
    Another similar question is using Facebook account to chat in Messages. Before it works fine by signing into chat.facebook.com, using Account Type: Jabber. Now it doesn't work even though when I go to System Preferences to re-enter my account password and no password error message occurs.
    Anyone can help? Thanks!

    Hi,
    For the Messages bit I would check your Facebook settings and see if "Chat" is still Enabled.
    10:19 PM      Monday; October 22, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

Maybe you are looking for

  • Custom graphics in java.awt.ScrollPane

    Hi all, I have to draw a custom created image in a scroll pane. As the image is very large I want to display it in a scroll pane. As parts of the image may change within seconds, and drawing the whole image is very time consuming (several seconds) I

  • Everytime I save a file from chrome it wants to save it with a (1) at the end of the file name. It i

    Everytime I save a file from chrome it wants to save it with a (1) at the end of the file name. It is extremely frustrating since I save hundreds of pdf files every month. It is the first time opening the file so it shouldn't be reverting to adding a

  • Macbook pro apple tv lag

    Has a solution been found for the lag between apple tv and macbook pro? The lag is slight but slows down then speeds up and feels like I'm having an epileptic fit in slow motion! I have a MacBook Pro (13-inch, Late 2011) and using OS Yosemite V 10.10

  • Aperture 2 won't recognize Canon G10 CR2 RAW files

    The Canon G10 just came out and I got one!! But Aperture will not recognize the CR2 files that it makes. Any idea how to make this work?

  • Volume much to low at the beginning - 'Automation' at waveformview?

    Hi there, hopefully somebody can help me. I do film a lot and so I use audition to correct or edit the audiotracks of my videofootage. My problem ist that I got a video from a conference were the xlr-input was pretty pretty low at the beginning and t