Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › Viewing Facebook activity for friend's using game

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #16592

    Kool

    Hi All,

    I’d like to have an ‘Activity Feed’ on my app. I’ve got the Facebook component hooked up and connected. The activity feed would display the user’s own activity on the app, and the activity of friends who also use the app.

    Can anyone with some experience of the Facebook Graph API push me in the right direction for achieving this?

    Many thanks!

    #16601

    Günther
    Felgo Team

    Hi Kool!

    I think you can use the Facebook Scores and Achievements API to share new player scores and achievements. No first hand experience with that from my side though.

    You can also think about using Felgo Multiplayer features, which also integrates Facebook with the multiplayer friend system (after connecting, you automatically have your FB friends who play the game as Felgo Multiplayer Friends). This makes it possible to e.g. send messages to friends, use push-notifications or store custom user data for each Felgo GameNetwork User.

    Best,
    Günther

    #16609

    Kool

    Hi Gunther,

    Thanks for the info.

    Using Felgo Multiplayer seems tempting. Could you possible answer the following questions about the system (I’ve read the documentation but couldn’t find answers):

    • I only want to display the scores of Facebook friends – not the wider audience – is this possible?
    • Can I create a an ‘activity feed’ using Felgo Multiplayer? Suppose a user unlocks an achievement – I want it to displayed in his/her friend’s activity feed
    • Can we customise the Felgo Multiplayer View? Can I steer clear of this for now and make my own delegates? I couldn’t find a “friends” property to iterate in the item. What I want to achieve is fairly simple and doesn’t need all the weight of the View component.

    Many thanks!

    #16610

    Kool

    I guess the part about scoring is the Felgo Game Network and not Felgo Multiplayer.

    I’ve seen that the Felgo Game Network View is customisable – is it still the case that the source code (and Indie license) is required to to customise it? It’s all a bit heavy for what I want to achieve – a simple ListView with custom delegates for a friend’s name and score.

     

    For sharing achievements via an ‘Activity’ feed, that’s the Felgo Multiplayer part.

    #16615

    Christian
    Felgo Team

    Hi Kool,

    I’ll jump in and answer your questions:

    • I only want to display the scores of Facebook friends – not the wider audience – is this possible?
      –> Yes, you can do this by simply customizing the GameNetworkViews. You can remove the all user parts there and only display friends.
    • Can I create a an ‘activity feed’ using Felgo Multiplayer? Suppose a user unlocks an achievement – I want it to displayed in his/her friend’s activity feed
      –> Yes, you can store customData for a GameNetwork user and store arbitrary data like an activity feed in there.
    • Can we customise the Felgo Multiplayer View? Can I steer clear of this for now and make my own delegates? I couldn’t find a “friends” property to iterate in the item. What I want to achieve is fairly simple and doesn’t need all the weight of the View component.
      –> Yes, you can customize GameNetwork and Multiplayer views with an Indie license. It sounds like Felgo Game Network + Multiplayer are a perfect fit for your use case.

    Cheers, Chris

    #16616

    Kool

    Hi Chris,

    Thanks for that. I have a few more questions I hope you can answer:

    Does customising the VPlayMultiplayerView involve using a local copy of the source code? The worry here is that for each Felgo update I would need to merge changes back into my local, custom view rather than simply pull the latest version.

     

    I’ve seen the customData for a GameNetworkUser, but suppose the following scenario:

    • Player 1 unlocks an achievement and it gets added to their customData
    • Player 2 is currently using the app – how can player 2 be updated with the customData from user 1?

    Whilst writing the above – I realised that the ‘Activity’ view page can be updated on the fly with friend’s customData whenever it becomes visible. Maybe I answered my own question? Although perhaps there could be an issue with how VPlayGameNetwork caches its data.

     

    I guess I have a final worry – such that, in a way, I’ve ‘hacked’ the VPlayGameNetwork into my Felgo App and cross-compatibility is still being worked on. It would be a shame to upgrade to Indie, integrate everything only to find a particular needed feature does not work and won’t be fixed until a ‘future version’. From my own experience as a software engineer both in the industry and at home, this is very likely to happen. Perhaps its better to wait a few months until it’s better supported?

    #16617

    Christian
    Felgo Team

    You can refresh the data by querying another request, this is up to you how often you query this, for example every time when showing the activity log of a friend. For real-time updates (ie where your local data is synced with the one from server in real-time), you can use the Google Realtime Database with our Firebase plugin.

    When you customize your GameNetwork view, you can simply make a diff with the engine update code and in this way forward our changes with the ones you made locally. However, Felgo Game Network View is quite stable, it changed by only 20 lines of code since the past 6 months. There is no further work planned on Game Network on the immediate roadmap, as it allows already now to cover all the use cases you mentioned and the ones we’ve got requested from other developers.

    Cheers, Chris

    #16627

    Todd

    Hey Kool,

     

    Sorry for posting something off topic in your thread but wanted to say thanks for the help with the content scrolling in the animation I’m working on. I had a question for you if you knew a quick answer, but do you know how to get the content scrolling to STOP at the end of the image? It just takes off and goes into blank screen. If you have any ideas I’d be grateful!

    #16632

    Kool

    todd.pocock@prodigygames.org said:

    Hey Kool,

     

    Sorry for posting something off topic in your thread but wanted to say thanks for the help with the content scrolling in the animation I’m working on. I had a question for you if you knew a quick answer, but do you know how to get the content scrolling to STOP at the end of the image? It just takes off and goes into blank screen. If you have any ideas I’d be grateful!

     

    You can add a condition to the contentY function (I don’t have QtCreator on hand atm):

    contentY: {
      // main code here
    
      if (contentY < 0)
      {
        contentY = 0
      }
    }

    Hope that helps.

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

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded