Forums

OverviewV-Play 2 Support (Qt 5) › Connect Leaderboard to Facebook

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #8668

    Nour

    Hi

    I am trying to connect to FB using Game network, but i got this error

     

    D/Qt (13064): qrc:///qml/VPlay/gamenetwork/gnView/ProfileView.qml:101 (onClicked): qml: ProfileView: fb-button clicked with text: Connect with Facebook

    W/Qt (13064): qrc:///qml/VPlay/gamenetwork/VPlayGameNetwork.qml:3994 ((null)): qrc:///qml/VPlay/gamenetwork/VPlayGameNetwork.qml:3994: ReferenceError: Facebook is not defined

     

    Please advice

     

    #8683

    Alex
    V-Play Team

    There is a small inconsistency in the import statements between the engine & the native plugin implementations since our last plugin update.

    For desktop builds please use the import statement

    import VPlay.plugins.facebook 1.0

    as usual. For Android & iOS builds please use

    import VPlayPlugins.facebook 1.0

    We had to change the import due to changes in the QML import scanner shipping with Qt 5.4 on Android. This inconsistency will be fixed with the next update of our plugin, for which the desktop targets will use the last import statement too.

    Best,

    Alex

    #8706

    Jan

    Did this issue get solved?

    I’ve got the same issue, but I’ve got the import line as mentioned in the last post. And that does not solve the problem…

    #8707

    Jan

    To be more precise I tried to build on IOS with a fresh installation of Qt 5.4 + facebook plugin. I took the remaining and necessary libs from the facebook example  repository. I changed the import to the above mentioned code.

    Cheers,

    drosophila

    #8708

    Christian
    V-Play Team

    Hi Jan,

    we are currently fixing this issue in the engine and hope to have an update with a fix released this week.

    Cheers, Chris

    #8712

    Jan

    Unfortunately I can not go back to a working version and therefore can not continue. Probably you could add the opportunity to the maintenance tool to recover/load older versions of the engine and plugins.

    #8713

    Christian
    V-Play Team

    Unfortunately, the Qt installer framework which we are using does not allow that. :(

    You could temporarily comment the VPlayGameNetwork item and its usage, so your game should run unaffected?

    Cheers, Chris

    #8714

    Jan

    As I just was doing some last tweaks before I wanted to create the “gold master” for a dot release thats unfortunately not an option.

    #8715

    Christian
    V-Play Team

    We hope to have this fixed until the mid of this week, maybe even on Tuesday – sorry for the inconvenience and we’re giving our best to resolve this asap!

    Chris

    #8737

    Christian
    V-Play Team
    #13181

    Paweł

    Hi,
    I got the following error when using “Connect with facebook” link from GameNetworkView:

     

    D/HotDogs ( 624): qrc:///qml/VPlay/gamenetwork/gnView/GnViewButton.qml:38 (onPressed): qml: button pressed: Connect with Facebook

    D/HotDogs ( 624): qrc:///qml/VPlay/gamenetwork/gnView/ProfileView.qml:102 (onClicked): qml: ProfileView: fb-button clicked with text: Connect with Facebook

    W/HotDogs ( 624): qrc:///qml/VPlay/gamenetwork/VPlayGameNetwork.qml:4125 ((null)): qrc:///qml/VPlay/gamenetwork/VPlayGameNetwork.qml:4125: ReferenceError: Facebook is not defined

     

    I think the problem may be connected with old imports in VPlayGameNetwork.qml file. I assume this because my custom code works fine:

    import VPlayPlugins 1.0
    
    ...
    
    facebook.postGraphRequest("me/feed", { "message" : "test" });

    I am using the 2.8.2 library version and testing it on my phone GT-I9195 (Android 4.4.2).

    #13182

    Paweł

    In the VPlayGameNetwork.qml I see that import command is commented out:

    // do not import the VPlayPlugins folder here, otherwise on Android & iOS 
    // the QML importscanner would link a plugin also when it is not enabled, since Qt 5.4
    //import VPlayPlugins 1.0

    I could change this localy, but I can’t find the source file (only dummy ones from mingw or armv7 from the 5.6 build).

    • This reply was modified 2 years, 6 months ago by  inb.
    #13184

    Nour

    I have that issue too

    #13187

    Alex
    V-Play Team

    Hello guys,

    The issue will be fixed with an update, coming today, stay tuned!

    Cheers,

    Alex

Viewing 14 posts - 1 through 14 (of 14 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support