Facebook sharing using invocation framework

I want to share a url in facebook. I used the code below

BlackBerry.Invoke.Invoke ({}
target: "Facebook."
Action: "bb.action.SHARE."
URI: ""http://goodliving.gulfnews.com/bid_travel#.UoRZpPnI2So ", "
(}, onSuccess, onError);

It displays the url and preview in the facebook page.

But I need to get an overview only.

Please help me to do this. Thanks in advance.

All available for Facebook invocations are listed here:

http://developer.BlackBerry.com/HTML5/documentation/Facebook.html

There is only a single call to URL and it seems that it is the default behavior with no way to remove the URL from the content of the action. It comes from depends on implementation of the Facebook sharing itself.

Tags: BlackBerry Developers

Similar Questions

  • Share an image for Facebook or BBM using Invocation Framework?

    Hi, is it possible to do?

    I finished an Image editing application and would like the user to be able to hit the 'SHARE' button and they would be taken as an option to the place where you can share (BBM, FB, TWITTER).

    How do we proceed? Thankssssss

    It is possible.

    You must use the framework of the invocation, to be precise 'Citing of basic Applications.

  • How to share text and image at the same time using Blackberry invocation framework

    Hello

    I need to share the text and its corresponding picture to FB, Twitter and BBM using the framework of invocation of blackberry. No invocation framework support for images and text sharing simultaneously.

    When I use the mime type as text/plain, the url of the image and the text is shared and when it is image/jpeg is used only the image is shared and not the text. Here is the snippet of code used.

    ShareDataTo=function shareTo(key) {
    //shareImage();
    var text ="";
    
    text = itemObject.myName +"\n My Age : Rs."+itemObject.myAge+"\n Address "+itemObject.address+"\n"
    try
    {
    blackberry.invoke.invoke({
    target: key,
    action: "bb.action.SHARE",
    type: "text/plain",
    data:text
    });
    }
    catch(Error)
    {
    //alert('in ShareDataTo error '+ Error);
    }
    }
    

    Help, please

    Kind regards

    Annuk

    This is not currently supported.  Now, you can make a text or an image, but not both.

  • Encoding issue when using Invocation/InvokeQuery in the Cascades

    I'm having a problem trying to share the Spanish text, using Invocation, seems to be a coding problem, but I don't know how to solve this problem, following code illustrates the problem. Rather than retrieve the text, I get this:

    This is the code I use:

    import bb.cascades 1.0
    
    Page {
        attachedObjects: [
            Invocation {
                id: invokeShare
                query: InvokeQuery {
                    id: invq
                    mimeType: "text/plain"
                    data: " ¡Tratando de compartir algo en español!"
                    invokeActionId: "bb.action.SHARE"
                    onQueryChanged: invq.updateQuery()
                }
            }
        ]
    
        Container {
            layout: DockLayout {}
            Button {
                text: "Click"
                onClicked: {
                    invokeShare.trigger("bb.action.SHARE")
                }
            }
        }
    }
    

    Hello!

    "data" parameter expects a QByteArray. By default, the string is converted to QByteArray using the ASCII coding. You will need to convert it to Utf8 instead. This can be done using a C++ helper function: http://supportforums.blackberry.com/t5/Native-Development/sharing-data-of-type-QString-using-Invocat...

  • If I want to make a screen shared using video and graphics, programs Adobe would achieve this?

    If I want to make a screen shared using video and graphics, programs Adobe would achieve this?

    First Pro... Ask for details at http://forums.adobe.com/community/premiere/content

  • Cannot create shared using generation members reference build, method

    Hi all

    Is there a limitation on Essbase Dimension build rules which disables you to create members shared using the generation of reference build method? I think I've tested all possible scenarios, including using the property of field duplicate generation without success. Please see my test below folder. Just for info, I was able to create members shared with the build Parent/child method. I've read a few threads on this forum, who in fact recommend method Parent/child to create members shared, but I wanted to check with you guys.

    Generation (isn't work)

    Gen2 | Gen3 | Gen4
    Home | M0001 | 00001_0002
    Alternative | A0001 | 00001_0002

    Parent/child (of work)

    Parent | Child
    Home | M0001
    M0001 | 00001_0002
    Alternative | A0001
    A0001 | 00001_0002

    Thank you very much!

    Mehmet

    Yes, you can build members shared using generations. In my view, there is a sample of the file and of the rule of the load in the base sample

  • Should I use spring Framework with JSF2 and Hibernate?

    Hi all
    I'm starting to put in place a web portal and I would use JSF2 and Hibernate.
    Now, I don't know JSF2 so I looked for a tutorial.
    I found a tutorial on JSF2 who seems very complete, but in this tutorial, I found an article where the author use Hibernate to the "model section", JSF2 for 'view' section and one is from the "controller" section
    Now I have a doubt, if I can develop a web portal without Spring MVC or I can't develop component of any controller with JSF2?
    Thank you very much for your answers!

    Filippo Tenaglia wrote:
    Now I have a doubt, if I can develop a web portal without Spring MVC or I can't develop component of any controller with JSF2?

    Yes, you can do so without Spring MVC. You can develop the portal without using any framework, but if you use the style mvc framework, it will be much easier and simpler. Likewise, you can use framework JSF itself.

  • Downloading files using Zend Framework

    I'm tyring use Zend Framework to download files as described in the book "Adobe Dreamweaver CS5 with PHP" by David Powers.  I use the code example (more or less) and can operate perfectly with a local installation of XAMPP Apache and PHP.  However, I can't it works correctly with a site hosted, after trying GoDaddy and Verio.

    Zend Framework is correctly installed, include the paths correctly set (I know that because other Zend FW operations, such as the validation work very well).  In addition, if the directory I want to download on is not specified correctly I have errors on it.  But when I try to actually upload a file (once again, with a code that works on the XAMPP platform), I get nothing.  No errors and no file uploaded.

    I have the script set up to send an email with a link to the downloaded file and the name field is empty (but the email get sent, indicating again that the ZF works).  I'm finding I have something misconfigured on hosting plaforms and am looking for suggestions as what to look.  Thank you.

    BTW, checked the permissions on the download directory, and it should be writable...

    No problems. It's a mistake that we all have at one time or another. I'm glad you find the book useful.

  • Use the invocation Framework to emulate background processing

    Hello

    Is it possible for a target Service to continually call himself? (http://developer.blackberry.com/native/beta/documentation/app_integration.html)

    If the application that called the target service is completed, is destroyed service are, it continues to run?

    Thank you.

    What is the Service target summon you?

    The only authorized background services are those provided by the system, create your own service is not supported at this time.

    I recommend that you look at using push if you want to avoid running in the background.

  • Attach the file to your e-mail via mailto + invocation framework

    I am tryng to attach a file to an e-mail message using the mailto syntax.

    The email app is opened by the framework of the call

    MailSubject = "Test"
    MailBody = "Hello!";
    
    // create handler invocation
    navigator_invoke_invocation_t *invoke = NULL;
    navigator_invoke_invocation_create(&invoke);
    
    // setting the browser as target
    navigator_invoke_invocation_set_target(invoke, "sys.pim.uib.email.hybridcomposer");
    
    // set invocation action
    navigator_invoke_invocation_set_action(invoke , "bb.action.OPEN, bb.action.SENDEMAIL");
    
    // Setting URI
    navigator_invoke_invocation_set_uri(invoke , ("mailto:[email protected][email protected]&subject=" + MailSubject + "&body=" + MailBody + "&attachment=" + "file:///accounts/1000/shared/print/file").toAscii().data() );
    
    // invoke the target
    navigator_invoke_invocation_send(invoke);
    
    // clean up resources
    navigator_invoke_invocation_destroy(invoke);
    

    I tried to delete file:/// and put / alone but doesn't either.
    The file is located in the shared folder and I know is the only way to attach a file to an email.

    https://developer.BlackBerry.com/native/documentation/core/email.html

    There are a few examples, but none of them have pre-compiled field such cc + object + body + attachments together.

    Can someone help me?

    Thank you

    I went from Json to QVariantMap and no, it works without problem. Here is the code:

        bb::system::InvokeManager InvokeManager;
        bb::system::InvokeRequest InvokeRequest;
    
        QVariantMap EmailData;
        QVariantMap EmailDataWrapper;
    
        EmailData["to"] = "[email protected]";
        EmailData["cc"] = "[email protected]";
        EmailData["subject"] = "MailSubject";
        EmailData["body"] = "MailBody";
        EmailData["attachment"] =  "/accounts/1000/shared/print/file";
    
        EmailDataWrapper["data"] = EmailData;
    
        InvokeRequest.setTarget("sys.pim.uib.email.hybridcomposer");
        InvokeRequest.setAction("bb.action.COMPOSE");
        InvokeRequest.setMimeType("message/rfc822");
        InvokeRequest.setData(bb::PpsObject::encode(EmailDataWrapper , &bool_result) );
    
        InvokeManager.invoke(InvokeRequest);
    
  • Photo share using the framework of the call

    Hello

    I've seen a few threads review sharing framework (invocation so, to be more precise), but most of them are on the share of channels. I need to share a picture of the local file system. What I've tried so far:

    InvokeActionItem - cannot really be used as URI is not editable after that request was created (at the time of follow-up was created). I can use this method to share a photo with URI fixed, I want to say it opens a dialogue with 4 points (Bluetooth, NFC and 2 elements BBM) and sends the file to a different device using at least Bluetooth.

    Invocation (in section attachedObjects) - opens the dialog with only the choices of NFC. Cannot really test it because I don't have any other NFC device activated. In any case, I need all 4 choices that the previous method gives

    InvokeManager - shows nothing at all, no dialogue, no errors in the log of the device.

    Can anyone suggest something else? I also tried invokeclient example, but whenever I try to share whatever it is it shows just a mistake. Thanks in advance

    Too bad, solved exactly as described here:

  • connection of Native facebook app - context invocation

    Hello

    I use this project for facebook login:

    https://github.com/QuickBlox/BB10-Facebook-connector

    Currently, it sends you to a web browser to connect. I wonder if there is a way to launch the native facebook for the user to connect app?

    Thank you.

    I don't think that there is no invocation so that no sorry, you must do it yourself.

    There's an example here for social invocations that are available application...

    http://BlackBerry.github.IO/Cascades-samples/socialinvocation.html

  • Trying Photo sharing using C++ Invoke

    I have this code and I thought that he should show me all available applications that could share the file, but it only goes to show me my 'BBM groups', and I don't understand why.

    InvokeManager invokeManager;
        InvokeRequest request;
        request.setAction("bb.action.SHARE");
        request.setUri("file:///accounts/1000/shared/camera/IMG_00000003.png");
        invokeManager.invoke(request);
    

    Don't know what I'm missing.  THX.

    Hi Steven,
    I had the same problem last week.
    You make an invocation that says 'I want the best app to handle this', then the system decides what to do.

    Rather than use the invoke handler, you must create an invokequery.

    Here is the code I use to share a file:

    invocation = Invocation::create(InvokeQuery::create().parent(this).uri("file:///" + invokeActionId = "bb.action.SHARE";
    connect(invocation, SIGNAL(armed()), this, SLOT(onArmed()));
    connect(invocation, SIGNAL(finished()), invocation, SLOT(deleteLater()));
    

    in onArmed I call

    invocation->trigger(invokeActionId);
    
  • Screen messages sharing: use a helmet causes a loss of voice.

    Hello I have used successfully for several years of screen sharing.  Recently, any time I use headphones when using my audio screen sharing past not by the person I'm screen sharing with.   No problem if I don't use the helmet.   At first I thought that my helmet was bad, so I got a replacement of the typical Apple headphones that come with the iPhone.   Audio microphone and voice work fine with iPhone so no problem there.  Very strange.  Anyone having this same problem?

    Hello

    Do you want to say helmet ordinary (without microphone) or you are talking about headphones?

    Also, what is defined in system preferences > output when you make this change?

    This corresponds to the message parameter > preferences > Audio/video section and the choice of output?

    In General, it must "match".

    21:42 Monday; January 18, 2016

     iMac 2.5 Ghz i5 2011 (Mavericks) 10.9
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     a few iPhones and an iPad

  • iPhone facebook messenger using mobile data

    Hello

    My iphone 6 (with IOS 9.2, I think) uses a large number of mobile phones with video calling Facebook messenger some time connected Wifi. I have assist disabled Wifi. I installed MyDataManager and it shows me that, within a period of half an hour this morning, I used the Wifi 1.5 and 0.5 GB of mobile data. My mobile provide agrees that I used a lot of mobile data today. Which is the only time today I did something data-intensive.

    I saw this happen several times over the past two months where I was sure I was on wifi, but used a lot of mobile data.

    Looking for the forum and can "t find all other references to FB Messenger doing so.

    Anyone experienced this? All solutions?

    What you wanted to hear?

    You know what's using your data. Do you use FB Messenger a lot? Turn off mobile data as a test for a day. If your mobile data fails, you have your answer/solution. Video calls are huge for the use of the data.

    The phone should be able to detect and select wifi on the cell data when both are present, but sometimes it isn't. If your signal wifi cycles or drops during your call video, data of the cell comes into play to keep you going. Even if wifi is disabled.

    Disabling global cellular data or only FB Messenger can be your best way to control this.

Maybe you are looking for

  • An error with Firefox to manage the box of Pandora/DMX

    With the latest version of Firefox, I now have the following error code when it is tempting to connect to the controller based on the web for hardware DMX boxes used to run Pandora for businesses: sec_error_extension_value_invalid Previously, Firefox

  • SIGMATEL HIGH DEFINITION AUDIO CODEC, not pluged. How?

    Digital output device does not.  I want to connect AUDIO CODEC; Please see the way in which.

  • A mobile application find my printer, another don't

    I have a HP Photosmart printer and an iPad 2, so I decided to download the applications of 2 HP (HP ePrint and distance of the IOA). Well, the HP ePrint located immediately my printer, and I was able to connect to my GMail and Cloud apps, etc, and ev

  • Availability of blackBerry Smartphones BlackBerry Messenger 7.0.0.126

    The device information: BlackBerry Bold 9780 OS worm 6.0.0.706, BIS BlackBerry Curve 9220 OS worm 7.1.0.746, BIS Hi Forum members I am from the eastern part of the India and I had a little problem, heard the rumor that BBM has been updated and new fe

  • Video point-to-point call - SX20

    All, If I have 2 end points x SX20 registered in the same cluster of UCM and accessible via the internal network with no crossing of firewall, should I additional permit (they all have two licenses of room) to make a video call from point to point? T