Citing a Twitter profile

According to the documentation, I'm doing the invocation like this:

void RedditAppMenu::twitterFollowTriggered()
{
    m_TwitterFollowInvocation = Invocation::create(
            InvokeQuery::create()
              .invokeTargetId("com.twitter.urihandler")
              .invokeActionId("bb.action.VIEW")
              .uri("twitter:connect:blackberry"));
    QObject::connect(m_TwitterFollowInvocation, SIGNAL(armed()),
        this, SLOT(twitterInvocationArmed()));
    QObject::connect(m_TwitterFollowInvocation, SIGNAL(finished()),
            m_TwitterFollowInvocation, SLOT(deleteLater()));
}

void RedditAppMenu::twitterInvocationArmed()
{
    m_TwitterFollowInvocation->trigger("bb.action.VIEW");
}

with the result:

InvocationWrapper::onQueryFinished: no matching result from Menu Service for query
   mimeType=""
   uri=QUrl("twitter:connect:blackberry")
   data= ""
   metadata= QMap()
   perimeter= 0
   action= "bb.action.VIEW"
   target= "com.twitter.urihandler"
   invokerIncluded= false
InvocationPrivate::onQueryResolved: no result matching query, no armed signal sent.

ideas?

Try to do like this:

InvokeRequest request;

request.setTarget(target);
request.setAction(action);
request.setUri(uri);

m_invokeManager->invoke(request);

For more information, see the example here: https://github.com/blackberry/Cascades-Samples/tree/master/socialinvocation

Tags: BlackBerry Developers

Similar Questions

  • Twitter share only the text

    Hi all

    This code that I use for the tweet on twitter below...

    _socialInvocation.Invoke ("Twitter", "bb.action.VIEW", "text/plain", "a: / /");

    When I use this... a: text / / is also visible in the text box and also it is shared in twitter...

    I need to share only part of text with the name of @twitterservice

    How it... any help will be really greateful...

    as

    _socialInvocation.Invoke ("Twitter", "bb.action.VIEW", "text/plain", "@twiiterservcei" + usertext.text);

    Thanks in advance...

    Idk if that helps, but for something using QML tweet I use this code

    Update query:

    invoketwitter. Query.Data = "@yourtwittername" + tweetBody.text
    invoketwitter.query.updateQuery ();

    To send the tweet

    invoketwitter. Trigger (invoketwitter. Query.invokeActionId);

    attachedObjects:]
    {Of invocation
    ID: invoketwitter

    query.mimeType: "text/plain".
    query.invokeTargetId: "Twitter".
    query.invokeActionId: "bb.action.SHARE".

    }
    ]

    I also have something in c ++ to display a twitter profile

    should not be difficult to change

    Sub App::invokeTwitter()
    {
    BB::System:InvokeManager * m_invokeManager;
    m_invokeManager = new InvokeManager (this);
    Application of InvokeRequest;
    request.setTarget ("com.twitter.urihandler");
    request.setAction ("bb.action.VIEW");
    request.setUri("twitter:connect:yourtwittername");
    m_invokeManager-> invoke (request);
    }

  • Can I publish work I did with the Photoshop of the trial.

    I'm not going to sell I want to just put it on my twitter profile.

    Yes, you can publish your Photoshop creations on social media if you wish.

  • How to find my profile twitter signin.

    I have connected to twitter, using my profile and password how to recover or hide the app.

    Several things:

    (1) this forum is for comments on the web site of Microsoft Community.

    (2) If you have problems with Twitter, you should ask to Twitter.  (http://support.twitter.com/)

    (3) is not your problem.  How to you "get" what?  Your Twiiter account?  Your 'profile' (whatever it is)?  What application you want to cancel and why?

  • I just signed up for Twitter, and I can't complete my profile because of "internal server errors. What should I do?

    I can't any more than my profile because I get the message that there is a server error internal.  Can someone help me?

    Hi, MKDoris,

    It's a question of Twitter.  You can try to contact them but generally if you wait, it will return itself.

    https://blog.Twitter.com/2012/today%E2%80%99S-turbulence-explained

    Connect with Twitter

    https://Twitter.com/about/contact

  • Twitter: Your account may not perform this action. Please, refresh the page and try again.

    Since the update to Firefox 41.0.2 I couldn't use Twitter.com. When I try to tweet, favorite, or retweet the following error occurs. Your account may be able to perform this action. Please, refresh the page and try again. There are a couple of other users who have the same problem, but it was tinkered with Mozilla and the other pending.

    It started with the update to 41.0.2 and twitter works in all other browsers, but not Mozilla.

    Here's this other thread with the DIY: Impossible of Retweet, tweet or articles favorite on Twitter, even when I refresh the page.

    I think there must be a setting or a question Add on. Your extensions look pretty standard, so I'm leaning towards a parameter of the problem. You could test as follows:

    By default, Windows hides the .js extension. To make sure that the following steps work, you have to disable this feature, at least temporarily. This article has the steps: http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions

    Open the settings folder (AKA Firefox profile) current Firefox help

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table of the page, click on the view file"" button. This should launch a new window that lists the various files and folders in Windows Explorer.

    Leave this window open, switch back to Firefox and output, either:

    • "3-bar" menu button > button "power".
    • (menu bar) File > Exit

    Pause while Firefox finishing its cleanup, then rename prefs.js to something like prefs.old.

    Launch Firefox back up again and it must use the default settings (for example, integrated home page). If you need to restore your previous session windows and tabs, go ahead and select restore previous Session from the history menu.

    Twitter works best? If so, we could try to understand the precise adjustment at fault or you could rebuild your settings. Or you can undo the change by renaming the new prefs.js to prefs.txt and rename prefs.old back to prefs.js (with Firefox closed, as you did before) and understand it through a little trial and error.

  • In Firefox 39.0, I have a missing folder to store Twitter design parameters (background theme). What is the name of the missing file?

    Firefox 39.0 must store parameters for design background Twitter. This unknown file should be here in the help of Firefox, troubleshooting information, profile folder. This who should I name a new folder to save the twitter background design choices?

    Sorry, I don't know exactly what you are doing.

    If it's an arrangement on Twitter, the site probably will set a cookie and could use the storage offline (but will most likely just use a slightly different page and do not store images locally).

    If you plan to replace the background normal Twitter with something different to your own choice, were you plan to use a custom style rule or an add-on of a certain type? The technique has probably determines the location.

  • After you delete the contents of my temporary files, firefox is more meets a few buttons and twitter is text-only, help please.

    I used a utility to dump the contents of my temporary folders, since then firefox does not display correctly some pages. In google mail that I have to select "use basic html" to make it work, twitter just displays the text and the buttons do not work in other applications. question 1, how to fix it and question 2, why firefox puts essential info in temporary folders

    Hello

    Please also try a new profile. If it's good, you can later copy the necessary personal data of the old profile. Firefox stores your personal data and settings to another separate location of the files/folder. A new profile would default Firefox settings (Tools (Alt + T) > Options, and topic: config ) and usually also would be vacuum of Extensions and themes (appearance) in tools > Add-ons) and their parameters. In addition, a new profile would have no previous website stored data/settings etc, (Tools > clear recent history).

    Profiles Howto

    Files & profile folder

    Subject: config entries

    You can try to prevent the temporary storage by setting override automatic cache management to 0 (zero) in Tools ("Alt + T") > Options > Advanced > network. Please note that certain data such as streaming video... always can be stored in the temporary folder of Windows.

  • Errors in text or Web Twitter sites

    Hello

    I receive errors of text on the Web page of Twitter.com and sees only a few bars / broken characters e.g. here - http://i39.tinypic.com/34t4yma.jpg

    However when starting in safe mode I do not get errors on the site of Twitter.com e.g. here - http://i41.tinypic.com/9ibl1s.jpg

    It seems that the only site that has this problem as well as a few other similar sites, has been like this for a few months.

    Other Solutions, I tried:

    -Created the new profile / result = same error

    -People with disabilities all extensions/add-ons custom = same error

    -Disabled the Antivirus software? / result = same error

    -Start in SafeMode fixed = /result

    How to eliminate this problem without starting in safe mode?

    Twitter.com also works very well in other browsers.

    Thank you

    Hello

    Safe mode also disables hardware acceleration in addition to the installed Extensions, themes (appearance). The manual hardware acceleration setting is in Tools (Alt + T) > Options > Advanced > general > use hardware acceleration when available. You may need to reboot after disabling/enabling the option. Options > Advanced

    Options

    Hardware acceleration.

  • Firefox running error with several profiles and - no.-remote set

    I created two profiles. One turn firefox 4 and one for firefox 3. I run both for test purposes in an environment of websolution. The profiles are called respectivally firefox4 and firefox3 and these are the only profiles. I changed the shortcuts to read
    Path/to/firefox4/Firefox.exe Pei firefox4-no-remote
    and
    Firefox3 Pei Path/to/Firefox3/Firefox.exe-aucun-distant

    Now I can start two versions of shortcut there at the same time. But when firefox 4 is open (I want to use it as default browser) and I clicked on a link in another program (i.e. a link in an email open in thunderbird or from a twitter app) I get an error:
    Firefox is already running but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

    I thought that with you-no-in case of problems of distance options like this. Is there something I'm missing or is there a fix for this problem?

    You cannot use the -no-remote command for a profile that is the ' default browser / profile ".

  • Photo Source other than Facebook/Twitter?

    My syncs to gmail account with my OSX address book. Both have a collection of photos that I have accumulated over the past 10 years for each of my contacts. On my Google Nexus One, I could use these images to show against the contacts, when people call me, etc. On the Droid X, I can only select Facebook or Twitter as a source of image. What's not here?

    I've seen this elsewhere deliver: https://supportforums.motorola.com/message/147461 but my Droid has no MotoBlur, and I never had the opportunity to register.

    I also want to select a group of numbering to show in my contact list permanently. I choose one from the drop down, but it never sticks.

    Anyone? These are the irritants only to another beautiful phone. For the first time that I see a Droid phone it's better in many significant ways than my old iPhone.

    I don't have a twitter account, but I use facebook.  When I want to see facebook updates, I use the facebook app or the facebook widget.  I hate Moto chose to deeply integrate social networks in this operating system to supplant the profile pictures of GOOGLE for my GOOGLE contacts on my GOOGLE powered phone.

  • I want to take a photo using my web cam of myself, for my profile, I do what he says, he will not yet let me do what I want.

    For my profile I want to take a picture of me using my web cam (Built In), to use for my profile, it will be only let me go in my images, where I have a few pictures, but none of the nyself. I have the same problem with Twitter.

    Why my photos is a problem for you.

    From there, you can open this picture in a program and resize photo editor / edit... and then add this photo to your profile with her page search function.

  • BlackBerry Twitter on BB Z10 Z10

    Profile picture while typing on the profile picture on my flllowers & result, profile image, it cannot be zoomed, why? ,,

    I'm sure it will be added in a future release. The Twitter app needs a lotof love...!

    It would be super cool if the image would jump down from the top as do the app World icons when you touch! To see that go to the world of the app, select an application, and then press its icon in the upper left corner. Useless here... but cool!

  • sending request giving 401 unauthorized error in Twitter

    Hi am using the following code to update my status in twitter, but gives a 401 unauthorized error

    can any one help on this... its urgency.

    Thank you

    cordially yakubpasha

    Sub update (String username, String password, string status) throws IOException {}
    String response = null;
    HttpConnection connection = null;

    /*
    * ask a String upadte my status
    */
    String query = "status =" + urlEncode (status);
    String length = String.valueOf (query.length ());
            

    /*

    * username and password code here
    */

    String userPass = username + ":" + password;
    Byte [] encrypted = Base64OutputStream.encode (userPass.getBytes (), 0,
    userPass.length (), false, false);
    String url = "https://twitter.com/statuses/update.xml";
                 
    try {}
    Connection = (HttpConnection) Connector.Open (URL);
    connection.setRequestMethod (HttpConnection.POST);
    connection.setRequestProperty ("User-Agent", "profile/MIDP-2. ("0 configuration/CLDC - 1.0");
    connection.setRequestProperty ("Content-Type", "application/x-www-formulaires-urlencoded");
    connection.setRequestProperty ("authorization", "Basic" + new String (encoded));
    connection.setRequestProperty("Content-Length",length);
                
    //
    connection.setRequestProperty ("Content-Length", len);
    OutputStream os = connection.openOutputStream ();
    OS. Write (u.GetBytes ());
    Dialog.Alert ("" + Connection.getResponseCode () + Connection.getResponseMessage ());
    If (connection.getResponseCode () == HttpConnection.HTTP_OK) {}
    StringBuffer buffer = new StringBuffer();
    InputStream is = connection.openInputStream ();
    int c;
                    
    ("Connection") Dialog.Alert;
    While ((c = is.read (())! = - 1) {}
                        
    buffer. Append ((Char) c);
                        
    }
    is. Close();
    response = buffer.toString ();
    Dialog.Alert (Response);
    }
    } catch (Exception ex) {}
    Dialog.Alert ("error message");
    System.out.println ("sdcfsdfsdfs" + ex.getMessage ());
    } {Finally
    If (connection! = null) {}
    try {Connection.Close ;}
    catch (IOException ext) {}
    }
    }
    }

    Hey I made with her...

    If any want to post a status lets you next...

    its works perfectly

    Sub update (String username, String password, string status)
    throws IOException {}
    String response = null;
    HttpConnection connection = null;

    String query = "status =" + urlEncode (status);
    String length = String.valueOf (query.length ());

    String userPass = username + ":" + password;
    Byte [] credentialsBytes = (username + ":" + password) .getBytes ();
    Byte [] encodedBytes = Base64OutputStream.encode (credentialsBytes, 0,)
    userPass.length (), false, false);
    String credentialString = new String (encodedBytes);

    String url = "https://twitter.com/statuses/update.xml";
        
    try {}
    connection = (HttpConnection), Connector.open (url);
    connection.setRequestMethod (HttpConnection.POST);

    connection.setRequestProperty ("Content-Type",
    "application/x-www-formulaires-urlencoded");
    connection.setRequestProperty ("authorization", "Basic"
    (+ credentialString);
    connection.setRequestProperty ("Content-Length", length);
    DataOutputStream out = new DataOutputStream (connection
    (. openDataOutputStream());
    out. Write (Query.GetBytes ());
    out. Flush();
    out. Close();
    If (connection.getResponseCode () == HttpConnection.HTTP_OK) {}
    StringBuffer buffer = new StringBuffer();
    InputStream is = connection.openInputStream ();
    int c;

    ("Connection") Dialog.Alert;
    While ((c = is.read (())! = - 1) {}

    buffer. Append ((Char) c);

    }
    is. Close();
    response = buffer.toString ();
    Dialog.Alert (Response);
    }
    } catch (Exception ex) {}
    Dialog.Alert ("error message");
    System.out.println ("sdcfsdfsdfs" + ex.getMessage ());
    } {Finally
    If (connection! = null) {}
    try {}
    Connection.Close;
    } catch (IOException ext) {}
    }
    }
    }
    }

    This code I copied from somewere am thanking him for sharing this code snippet
    public static String urlEncode(String s) {}
    If (s! = null) {}
    try {}
    s = String (new s.getBytes("UTF-8"), 'ISO-8859-1');
    } catch (UnsupportedEncodingException e) {}
    }
    StringBuffer tmp = new StringBuffer();
    try {}
    for (int i = 0; i)< s.length();="" i++)="">
    int b = (int) s.charAt (i);
    If ((b > = 0 x 30 && b <= 0x39)="" ||="" (b="">= 0 x 41 && b))<=>
    || (b > = 0x61 & b)<= 0x7a))="">
    tmp. Append ((Char) b);
    } Else if (b == 0x20) {}
    tmp. Append("+");
    } else {}
    tmp. Append ("%");
    If (b<= 0xf)="">
    tmp. Append ("0");
    }
    tmp. Append (Integer.toHexString ((b));
    }
    }
    } catch (Exception e) {}
    }
    Return tmp.toString ();
    }
    Returns a null value.
    }

  • Application Twitter open since Application Java

    Hi guys

    Quick question that I couldn't find the answer to a search:

    It is possible to:

    (1) open the Twitter application with a link of my Java application?

    (2) open the Twitter app to a specific profile page, with a link to my Java application?

    See you soon!

    Jim

    (1) you can open any application using applicationmanager.
    (2) No, not that I know

Maybe you are looking for

  • Laptop HP Pavillion: my printer is offline, how do it back online?

    My printer is still offline, how to do it back online?

  • MacBook Pro 13' - logic board replacement

    Hello I bought myself a Mackbook Pro (end 2011 model) and it doesn't have the bees working properly. It spontaneously turned off a few times. And the last time it happened I took it in to an apple store for orientation. I was told that I have to repl

  • Built is not executed in run mode

    Hello I have to PCs. With LV 2013 to develop and create exe files and a second PC with only Runtime installed. Earlier, I tried the first time to run an exe built fresh and got this popup: But I see that it is installed in my Windows 7 64-bit softwar

  • Why won't my keyboard output to the screen?

    Suddenly, the performance of my mouse and keyboard has become very erratic.  Output is not displayed on the screen and the cursor does not move as expected and wait.  The last time this happened it was because of an update from Microsoft which needed

  • Trying to replace a table in a cluster

    I have a table 1 d to a type with a cluster of 5 elements. One of the elements is a picture that I want to replace. Can someone help me understand how to do this? Thank you.