Are there any passages in the bible (old or new) that display god as getting tricked by somebody? For example in the Garden of Eden God didn't know (or seemed to not know) about the apple being eaten until he was told. Could they have lied? Are there any examples of something like this happening?
Yes, else the following would make no sense:
Genesis 3:8 NIV
They heard the sound of the LORD God walking in the garden in the cool of the day, and the man and his wife hid themselves from the presence of the LORD God among the trees of the garden.
So He said to him, “What is your name?”
1 Kings 19:9
And there he went into a cave, and spent the night in that place; and behold, the word of the Lord came to him, and He said to him, “What are you doing here, Elijah?”
And Jesus, immediately knowing in Himself that power had gone out of Him, turned around in the crowd and said, “Who touched My clothes?”
If God knew the answers, he wouldn't have asked. Therefore, he could have been given the incorrect answer. Alternatively, God continues to test people by asking questions that he already knows the answer to - which doesn't really fit. He would be the master of the art of rhetorical questions.
In standard Christian theology, God is described as omniscient, or all-knowing (by major theologians such as St Aquinas). This is incompatible with being deceived. Accordingly we would not interpret any passage in the Bible as implying God was deceived, unless we wished to discard this core belief.
God is cannot be deceived.
Be not deceived; God is not mocked: for whatsoever a man soweth, that shall he also reap. Galatians 6:7
For the wisdom of this world is foolishness with God. For it is written, He taketh the wise in their own craftiness. 1 Corinthians 3:19
Shall not God search this out? for he knoweth the secrets of the heart. Psalms 44:21
And he said unto them, Ye are they which justify yourselves before men; but God knoweth your hearts: for that which is highly esteemed among men is abomination in the sight of God. Luke 16:15
The Bible is very clear that God can't be deceived. It is impossible to deceive God.
I would second what Chris Sunami has said and would like to add up couple of scriptures
1 Corinthians 1:25 King James Version (KJV) 25 Because the foolishness of God is wiser than men; and the weakness of God is stronger than men.
1 Corinthians 3:19 King James Version (KJV) 19 For the wisdom of this world is foolishness with God. For it is written, He taketh the wise in their own craftiness.
However smart, brilliant, wise and crafty a man can be, he never stands equal to God Almighty.