studiogo1's Forum Posts

  • 5 posts
  • He this calms me a bit. A though something is wrong with my app. I'll keep on looking for answer. Thanks for your time.

  • this is what i have now

    Config file:

    {
    
    "instant_games": {
    
    "navigation_menu_version": "NAV_FLOATING",
    
    }
    
    }

    app

     "FBInstant.context.chooseAsync()
    .then(function () {
     FBInstant.updateAsync({
     action: 'CUSTOM',
     cta: 'Say Congrats!',
     image: '" & image64 & "',
     text: {
    default: ' english text',
    localizations: {
    en_EN: 'UStext',
    es_LA: 'spanish',
    pt_BR: 'portuguese'
    }},
     template: 'play_turn',
    data: { myCustomData: '42' },
    strategy: 'IMMEDIATE',
    notification: 'NO_PUSH'}) });"

    and i still can send only generic message (something like "user X just played, Now's your turn")

  • Thanks and how does your app config custom_update_template looks?

    		"custom_update_templates": {
    		
     "play_turn": {
     "example": "Kun just played HELLO. Now it's Alissa's turn!"
     }
    		},
    
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • fredriksthlm as I mentioned - no problem with picture. Invitation send image but not custom message. Could you post your code. It would help me a lot.

  • Hollo in my FB Instant Game I can send invitation, with custom photo, to other user via messanger or share Instant Game video on player's time line.

    But the messanger invitation is send with generic message. I have set custom CTA, text and template in fbapp-config.json but it doesn't work.

    I also would like to display custom image and taxt while sharing invitation on player's time line. Do you have any idea what could be the problem?

     "FBInstant.context.chooseAsync()
    .then(function () {
     FBInstant.updateAsync({
     action: 'CUSTOM',
     cta: 'Zagraj!',
     image: '" & image64 & "',
     text: 'test wiadomosc',
     template: 'GAME_TEMPLATE', strategy: 'IMMEDIATE', notification: 'NO_PUSH'}) });"
    

    fbapp-config.json

    {
    	"instant_games": {
    
    	
    		"custom_update_templates": {
    			"GAME_TEMPLATE": {
    				"example": "Test tekst do wyswietlenia!",
    							}
    		},
    		
    		"orientation": "PORTRAIT",
    		"navigation_menu_version": "NAV_FLOATING",
    		"match_player_config": {
    			"min_context_size": 2,
    			"max_context_size": 20
    		}
    		
    		
    	}
    }
  • 5 posts